From 08fd0fa9f157d67a6a3689935c8b87c42e6684d7 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Fri, 4 Dec 2009 18:06:20 +0000 Subject: win32: fix variable use before initialization Signed-off-by: Blue Swirl --- net/tap-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net') 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); -- cgit v1.2.1