Fix regression in option parsing
PATCH 1/1 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 <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
--- vl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
vl.c +1 -0
@@ -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;
Signature · 1 line
1.6.5.2