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-Tag: v1.1.0pre1~76 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=50d2d532ed4615279bbeba010c9545c629c7c107;p=cascardo%2Fovs.git socket-util: Suppress uninitialized variable warning with old GCC. --- diff --git a/lib/socket-util.c b/lib/socket-util.c index 9031b2759..21d6b16df 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. */