[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] check NULL opts in qemu_opt_get functions
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH] check NULL opts in qemu_opt_get functions |
Date: |
Tue, 17 Jun 2014 22:04:00 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 06/17/2014 08:47 PM, Chunyan Liu wrote:
> 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 <address@hidden>
> ---
> Fix reported bugs:
> http://lists.gnu.org/archive/html/qemu-devel/2014-06/msg03866.html
>
> ---
> util/qemu-option.c | 28 ++++++++++++++++++++++++----
> 1 file changed, 24 insertions(+), 4 deletions(-)
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature