From 4e463d8d508d93756b9684ae030b5c412f7ea891 Mon Sep 17 00:00:00 2001
From: bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Date: Tue, 16 Mar 2004 00:02:58 +0000
Subject: tun-fd option fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@667 c046a42c-6fe2-441c-8c8c-71466251a162
---
 vl.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'vl.c')

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;
                         }
                     }
                 }
-- 
cgit v1.2.3