]> Git Repo - qemu.git/commit
QemuOpts: check NULL opts in qemu_opt_get functions
authorChunyan Liu <[email protected]>
Wed, 18 Jun 2014 02:47:26 +0000 (10:47 +0800)
committerStefan Hajnoczi <[email protected]>
Sat, 21 Jun 2014 08:40:14 +0000 (16:40 +0800)
commit435db4cf29b88b6612e30acda01cd18788dff458
tree536e75ea408b35289c00d6b30f4b4bcd8716e46c
parent999e5aa5cec71d7138c4b5271092f59ca85f9f6b
QemuOpts: check NULL opts in qemu_opt_get functions

Some places will call bdrv_create_file(filename, NULL, &local_err), where
opts is NULL. Check NULL in qemu_opt_get and qemu_opt_get_*_del functions,
to avoid extra effort of checking opts before calling them every time.

Signed-off-by: Chunyan Liu <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
util/qemu-option.c
This page took 0.031167 seconds and 4 git commands to generate.