diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-12-04 18:06:20 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-12-04 18:06:20 +0000 |
commit | dadc5963699a6425965b1dcac1e935557f732229 (patch) | |
tree | 79e1c60453a36248dfdc7ca8610e510883b397f2 /net | |
parent | 66349a853245020ff9fcebf4ffec9e4129ff933f (diff) | |
download | qemu-dadc5963699a6425965b1dcac1e935557f732229.tar.gz qemu-dadc5963699a6425965b1dcac1e935557f732229.tar.bz2 qemu-dadc5963699a6425965b1dcac1e935557f732229.zip |
win32: fix variable use before initialization
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/tap-win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tap-win32.c b/net/tap-win32.c index ef63782956..b717c17243 100644 --- 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); |