aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qemu-option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-option.c b/qemu-option.c
index 24392fcb4c..a52a4c4a08 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -814,7 +814,7 @@ int qemu_opts_foreach(QemuOptsList *list, qemu_opts_loopfunc func, void *opaque,
int rc = 0;
QTAILQ_FOREACH(opts, &list->head, next) {
- rc = func(opts, opaque);
+ rc |= func(opts, opaque);
if (abort_on_failure && rc != 0)
break;
}