From 50d2d532ed4615279bbeba010c9545c629c7c107 Mon Sep 17 00:00:00 2001 From: Bryan Phillippe Date: Fri, 20 Aug 2010 09:27:16 -0700 Subject: [PATCH] socket-util: Suppress uninitialized variable warning with old GCC. --- lib/socket-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.43.0