diff --git a/vl.c b/vl.c index a526cb0f355492e7fb2b895201bc5f57f7a43562..4cd1b60327e9e12e26d6af837e09d132c9898d07 100644 --- a/vl.c +++ b/vl.c @@ -2213,7 +2213,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque, /* init */ dinfo = qemu_mallocz(sizeof(*dinfo)); - if ((buf = qemu_opt_get(opts, "id")) != NULL) { + if ((buf = qemu_opts_id(opts)) != NULL) { dinfo->id = qemu_strdup(buf); } else { /* no id supplied -> create one */