aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 8472f0a230..f358dbed8c 100644
--- a/vl.c
+++ b/vl.c
@@ -980,6 +980,8 @@ int main(int argc, char **argv)
} else if (*p != '\0') {
fprintf(stderr, "qemu: invalid fd for network interface %d\n", nb_nics);
exit(1);
+ } else {
+ break;
}
}
}