From 1030021681e385ec0299a5f0f685b263db81bbb5 Mon Sep 17 00:00:00 2001 From: aliguori Date: Tue, 21 Apr 2009 19:56:23 +0000 Subject: [PATCH] Allow empty params for check_params (Jan Kiszka) Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7199 c046a42c-6fe2-441c-8c8c-71466251a162 --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;