]> sjero.net Git - wget/blobdiff - src/connect.c
[svn] Fix compilation under pre-C99 compilers.
[wget] / src / connect.c
index c65868d89399f0c95dfa29f2c16e37a054bd82cb..62ce2af9a86f2f4be2153f286354791dc958d84e 100644 (file)
@@ -397,7 +397,6 @@ bindport (const ip_address *bind_address, int *port, int *local_sock)
   int family = AF_INET;
   struct sockaddr_storage ss;
   struct sockaddr *sa = (struct sockaddr *)&ss;
-  xzero (ss);
 
   /* For setting options with setsockopt. */
   int setopt_val = 1;
@@ -423,6 +422,7 @@ bindport (const ip_address *bind_address, int *port, int *local_sock)
 # endif
 #endif
 
+  xzero (ss);
   sockaddr_set_data (sa, bind_address, *port);
   if (bind (sock, sa, sockaddr_size (sa)) < 0)
     {