commit | 28e68d68b0c88cb5eb0d9fa6c30914a3cdddebfc | [log] [tgz] |
---|---|---|
author | Anthony Liguori <aliguori@us.ibm.com> | Wed Jan 27 10:46:00 2010 -0600 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Wed Jan 27 10:50:14 2010 -0600 |
tree | efc1f8eb06bea61ad1c5615dbfc9e9d82f0e09e7 | |
parent | b4bf0a9a69961d8b7b3817f79dafae77fbd305bd [diff] [blame] |
Fix regression in option parsing Commit ec229bbe7 broke invocation without a specific -hda. IOW, qemu foo.img. The lack of an optind update caused an infinite loop. Reported-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff --git a/vl.c b/vl.c index 1cd355c..6f1e1ab 100644 --- a/vl.c +++ b/vl.c
@@ -4819,6 +4819,7 @@ while (optind < argc) { if (argv[optind][0] != '-') { /* disk image */ + optind++; continue; } else { const QEMUOption *popt;