diff options
| author | Chunyan Liu | 2014-06-18 04:47:26 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2014-06-21 10:40:14 +0200 |
| commit | 435db4cf29b88b6612e30acda01cd18788dff458 (patch) | |
| tree | 536e75ea408b35289c00d6b30f4b4bcd8716e46c /scripts/switch-timer-api | |
| parent | block: m25p80: Support read only bdrvs. (diff) | |
| download | qemu-435db4cf29b88b6612e30acda01cd18788dff458.tar.gz qemu-435db4cf29b88b6612e30acda01cd18788dff458.tar.xz qemu-435db4cf29b88b6612e30acda01cd18788dff458.zip | |
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 <cyliu@suse.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
