Message ID | 1411537527-16715-1-git-send-email-junmuzi@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/blockdev.c b/blockdev.c index b361fbb..ed95b76 100644 --- a/blockdev.c +++ b/blockdev.c @@ -536,8 +536,8 @@ static void qemu_opt_rename(QemuOpts *opts, const char *from, const char *to) { const char *value; - value = qemu_opt_get(opts, from); - if (value) { + /* rename all items in opts */ + while ((value = qemu_opt_get(opts, from))) { qemu_opt_set(opts, to, value); qemu_opt_unset(opts, from); }