[Qemu-devel] [PATCH v3 1/5] qemu-char: fix parameter check in some qemu_chr_parse_* functions

2014-11-04 Thread zhanghailiang
For some qemu_chr_parse_* functions, we just check whether the parameter is NULL or not, but do not check if it is empty. For example: qemu-system-x86_64 -chardev pipe,id=id,path= It will pass the check of NULL but will not find the error until trying to open it, while essentially missing and

Re: [Qemu-devel] [PATCH v3 1/5] qemu-char: fix parameter check in some qemu_chr_parse_* functions

2014-11-04 Thread Alex Bennée
zhanghailiang zhang.zhanghaili...@huawei.com writes: For some qemu_chr_parse_* functions, we just check whether the parameter is NULL or not, but do not check if it is empty. For example: qemu-system-x86_64 -chardev pipe,id=id,path= It will pass the check of NULL but will not find the