diff options
| author | Anthony Liguori | 2010-01-27 17:46:00 +0100 |
|---|---|---|
| committer | Anthony Liguori | 2010-01-27 17:50:14 +0100 |
| commit | 28e68d68b0c88cb5eb0d9fa6c30914a3cdddebfc (patch) | |
| tree | efc1f8eb06bea61ad1c5615dbfc9e9d82f0e09e7 | |
| parent | pflash: Buffer block writes (diff) | |
| download | qemu-28e68d68b0c88cb5eb0d9fa6c30914a3cdddebfc.tar.gz qemu-28e68d68b0c88cb5eb0d9fa6c30914a3cdddebfc.tar.xz qemu-28e68d68b0c88cb5eb0d9fa6c30914a3cdddebfc.zip | |
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>
| -rw-r--r-- | vl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4819,6 +4819,7 @@ int main(int argc, char **argv, char **envp) while (optind < argc) { if (argv[optind][0] != '-') { /* disk image */ + optind++; continue; } else { const QEMUOption *popt; |
