projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66349a8
)
win32: fix variable use before initialization
author
Blue Swirl
<blauwirbel@gmail.com>
Fri, 4 Dec 2009 18:06:20 +0000
(18:06 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Fri, 4 Dec 2009 18:06:20 +0000
(18:06 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
net/tap-win32.c
patch
|
blob
|
history
diff --git
a/net/tap-win32.c
b/net/tap-win32.c
index
ef63782
..
b717c17
100644
(file)
--- a/
net/tap-win32.c
+++ b/
net/tap-win32.c
@@
-687,11
+687,11
@@
static int tap_win32_init(VLANState *vlan, const char *model,
nc = qemu_new_net_client(&net_tap_win32_info, vlan, NULL, model, name);
+ s = DO_UPCAST(TAPState, nc, nc);
+
snprintf(s->nc.info_str, sizeof(s->nc.info_str),
"tap: ifname=%s", ifname);
- s = DO_UPCAST(TAPState, nc, nc);
-
s->handle = handle;
qemu_add_wait_object(s->handle->tap_semaphore, tap_win32_send, s);