error: Make use of error_set_progname() optional

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Markus Armbruster 2010-03-22 10:29:03 +01:00 committed by Aurelien Jarno
parent fc2377ea29
commit 6627f64510
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ void error_print_loc(void)
int i;
const char *const *argp;
if (!cur_mon) {
if (!cur_mon && progname) {
fprintf(stderr, "%s:", progname);
sep = " ";
}