summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBryan Phillippe <bp@toroki.com>2010-08-20 09:27:16 -0700
committerBen Pfaff <blp@nicira.com>2010-08-20 10:43:35 -0700
commit50d2d532ed4615279bbeba010c9545c629c7c107 (patch)
tree094b0cf3764a89466d8e0adf0dfde521e352f3ae /lib
parentb56042ac5deef373cefe156fc18dc38257d6ddfe (diff)
downloadopenvswitch-50d2d532ed4615279bbeba010c9545c629c7c107.tar.gz
socket-util: Suppress uninitialized variable warning with old GCC.
Diffstat (limited to 'lib')
-rw-r--r--lib/socket-util.c2
1 files changed, 1 insertions, 1 deletions
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. */