Patchwork [v2,4/6] error: Make use of error_set_progname() optional

login
register
mail settings
Submitter Markus Armbruster
Date March 22, 2010, 9:29 a.m.
Message ID <1269250145-15477-5-git-send-email-armbru@redhat.com>
Download mbox | patch
Permalink /patch/48263/
State New
Headers show

Comments

Markus Armbruster - March 22, 2010, 9:29 a.m.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qemu-error.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/qemu-error.c b/qemu-error.c
index 5d5fe37..9b9c0a1 100644
--- a/qemu-error.c
+++ b/qemu-error.c
@@ -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 = " ";
     }