error: Make use of error_set_progname() optional
authorMarkus Armbruster <armbru@redhat.com>
Mon, 22 Mar 2010 09:29:03 +0000 (10:29 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 27 Mar 2010 13:30:37 +0000 (14:30 +0100)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
qemu-error.c

index 14ec14f..2eadbfc 100644 (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 = " ";
     }