diff options
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-config.c b/qemu-config.c index 39bf6a9826..555c7ba091 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -186,7 +186,7 @@ int qemu_set_option(const char *str) return -1; } - if (-1 == qemu_opt_set(opts, arg, str+offset+1)) { + if (qemu_opt_set(opts, arg, str+offset+1) == -1) { fprintf(stderr, "failed to set \"%s\" for %s \"%s\"\n", arg, lists[i]->name, id); return -1; |