aboutsummaryrefslogtreecommitdiff
path: root/qemu-error.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-03-22 10:29:03 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-03-27 14:30:37 +0100
commit6627f64510b622912d35ced2771583e03b1f155f (patch)
treeae7e532349733c212f6efdd7185ee73e60e74c4c /qemu-error.c
parentfc2377ea29d11eb7ccc881b60ced7782fbc60443 (diff)
error: Make use of error_set_progname() optional
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'qemu-error.c')
-rw-r--r--qemu-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-error.c b/qemu-error.c
index 14ec14f39f..2eadbfc436 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 = " ";
}