diff --git a/libs/miniupnpc/miniwget.c b/libs/miniupnpc/miniwget.c
index b4849e43da..3fa930e313 100644
--- a/libs/miniupnpc/miniwget.c
+++ b/libs/miniupnpc/miniwget.c
@@ -49,13 +49,11 @@ miniwget2(const char * url, const char * host,
 	SOCKET s;
 #else
 	int s;
-#endif
 	int fd_flags;
+#endif
 	struct sockaddr_in dest;
 	struct hostent *hp;
 
-	fd_flags = 0;
-
 	*size = 0;
 	hp = gethostbyname(host);
 	if(hp==NULL)