projects
/
qemu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0178196
)
ifname arg fix
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 9 Jan 2007 19:44:41 +0000
(19:44 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 9 Jan 2007 19:44:41 +0000
(19:44 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2312
c046a42c
-6fe2-441c-8c8c-
71466251a162
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index
3edca0e
..
1ec78a7
100644
(file)
--- a/
vl.c
+++ b/
vl.c
@@
-3886,7
+3886,9
@@
static int net_client_init(const char *str)
if (net_tap_fd_init(vlan, fd))
ret = 0;
} else {
- get_param_value(ifname, sizeof(ifname), "ifname", p);
+ if (get_param_value(ifname, sizeof(ifname), "ifname", p) <= 0) {
+ ifname[0] = '\0';
+ }
if (get_param_value(setup_script, sizeof(setup_script), "script", p) == 0) {
pstrcpy(setup_script, sizeof(setup_script), DEFAULT_NETWORK_SCRIPT);
}