Commit 1030021681e385ec0299a5f0f685b263db81bbb5

Authored by aliguori
1 parent b63c7f6b

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
Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -1934,7 +1934,7 @@ int check_params(char *buf, int buf_size,
1934 1934 int i;
1935 1935  
1936 1936 p = str;
1937   - for(;;) {
  1937 + while (*p != '\0') {
1938 1938 p = get_opt_name(buf, buf_size, p);
1939 1939 if (*p != '=')
1940 1940 return -1;
... ...