Re: [Qemu-devel] [PATCH] check NULL opts in qemu_opt_get functions

2014-06-18 Thread Stefan Hajnoczi
On Wed, Jun 18, 2014 at 10:47:26AM +0800, 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-

Re: [Qemu-devel] [PATCH] check NULL opts in qemu_opt_get functions

2014-06-17 Thread Eric Blake
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 Li

[Qemu-devel] [PATCH] check NULL opts in qemu_opt_get functions

2014-06-17 Thread Chunyan Liu
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 --- Fix reported bugs: http://lists.gnu.org/archi