Allow empty params for check_params (Jan Kiszka)

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7199 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
aliguori 2009-04-21 19:56:23 +00:00
parent b63c7f6b77
commit 1030021681

2
vl.c
View File

@ -1934,7 +1934,7 @@ int check_params(char *buf, int buf_size,
int i; int i;
p = str; p = str;
for(;;) { while (*p != '\0') {
p = get_opt_name(buf, buf_size, p); p = get_opt_name(buf, buf_size, p);
if (*p != '=') if (*p != '=')
return -1; return -1;