From 3acd6b390cd0fa80adfdbde824e44c01505f0f83 Mon Sep 17 00:00:00 2001 From: pdw <> Date: Tue, 27 Aug 2002 18:54:48 +0000 Subject: [PATCH] Fixed ifc initialisation bug. --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index 25fea56..f452ce5 100644 --- a/options.c +++ b/options.c @@ -25,7 +25,7 @@ char optstr[] = "+i:f:n:dhpb"; static char *get_first_interface(void) { int s, size = 1; struct ifreq *ifr; - struct ifconf ifc; + struct ifconf ifc = {0}; char *i = NULL; /* Use if_nameindex(3) instead? */ if ((s = socket(AF_INET, SOCK_DGRAM, 0)) == -1)