Message ID | 1363685732-20827-1-git-send-email-alevy@redhat.com |
---|---|
State | New |
Headers | show |
Am 19.03.2013 um 10:35 hat Alon Levy geschrieben: > Signed-off-by: Alon Levy <alevy@redhat.com> > --- > block/qcow2.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Thanks, Alon. I already sent a more comprehensive patch yesterday: http://patchwork.ozlabs.org/patch/228462/ I guess I should send a pull request for it quickly. Kevin
diff --git a/block/qcow2.c b/block/qcow2.c index 1f99866..260a1d3 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -512,7 +512,9 @@ static int qcow2_open(BlockDriverState *bs, QDict *options, int flags) /* Enable lazy_refcounts according to image and command line options */ opts = qemu_opts_create_nofail(&qcow2_runtime_opts); - qemu_opts_absorb_qdict(opts, options, &local_err); + if (options) { + qemu_opts_absorb_qdict(opts, options, &local_err); + } if (error_is_set(&local_err)) { qerror_report_err(local_err); error_free(local_err);
Signed-off-by: Alon Levy <alevy@redhat.com> --- block/qcow2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)