summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-21 19:56:23 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-21 19:56:23 +0000
commit1030021681e385ec0299a5f0f685b263db81bbb5 (patch)
tree98257dc6ecd587fc0c5913681d834c3c7c19c23e /vl.c
parentb63c7f6b77145c109d66a62bb3b6efe12b80d62b (diff)
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
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 55a9bc5c0c..e0822fbe25 100644
--- a/vl.c
+++ b/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;