diff options
-rw-r--r-- | qemu-error.c | 2 |
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 = " "; } |