mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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:
parent
b63c7f6b77
commit
1030021681
1 changed files with 1 additions and 1 deletions
2
vl.c
2
vl.c
|
@ -1934,7 +1934,7 @@ int check_params(char *buf, int buf_size,
|
|||
int i;
|
||||
|
||||
p = str;
|
||||
for(;;) {
|
||||
while (*p != '\0') {
|
||||
p = get_opt_name(buf, buf_size, p);
|
||||
if (*p != '=')
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue