From patchwork Wed Mar 17 17:56:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4/6] error: Make use of error_set_progname() optional Date: Wed, 17 Mar 2010 07:56:52 -0000 From: Markus Armbruster X-Patchwork-Id: 47965 Message-Id: <1268848614-6844-5-git-send-email-armbru@redhat.com> To: qemu-devel@nongnu.org Cc: lcapitulino@redhat.com Signed-off-by: Markus Armbruster --- qemu-error.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 = " "; }