socket-util: Suppress uninitialized variable warning with old GCC.
authorBryan Phillippe <bp@toroki.com>
Fri, 20 Aug 2010 16:27:16 +0000 (09:27 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 20 Aug 2010 17:43:35 +0000 (10:43 -0700)
lib/socket-util.c

index 9031b27..21d6b16 100644 (file)
@@ -456,7 +456,7 @@ inet_open_passive(int style, const char *target_, int default_port,
     struct sockaddr_in sin;
     const char *host_name;
     const char *port_string;
-    int fd, error, port;
+    int fd = 0, error, port;
     unsigned int yes  = 1;
 
     /* Address defaults. */