From: Bryan Phillippe Date: Fri, 20 Aug 2010 16:27:16 +0000 (-0700) Subject: socket-util: Suppress uninitialized variable warning with old GCC. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50d2d532ed4615279bbeba010c9545c629c7c107;p=openvswitch socket-util: Suppress uninitialized variable warning with old GCC. --- diff --git a/lib/socket-util.c b/lib/socket-util.c index 9031b275..21d6b16d 100644 --- a/lib/socket-util.c +++ b/lib/socket-util.c @@ -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. */