-fix uninitialized scope ID
authorChristian Grothoff <christian@grothoff.org>
Fri, 23 Dec 2011 15:04:57 +0000 (15:04 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 23 Dec 2011 15:04:57 +0000 (15:04 +0000)
src/ats/ats_api_scheduling.c

index 4c5e0d51ec0b209c6802736fdbdf9011247a285d..b2dcc13011d6c8ff7019995616dec90e040e9aa6 100644 (file)
@@ -702,8 +702,8 @@ interface_proc (void *cls, const char *name,
     net->netmask = (struct sockaddr *) &tmp[1];
     net->length = addrlen;
 
+    memset (&network6, 0, sizeof (network6));
     network6.sin6_family = AF_INET6;
-    network6.sin6_port = htons (0);
 #if HAVE_SOCKADDR_IN_SIN_LEN
     network6.sin6_len = sizeof (network6);
 #endif