From: Andrew Bartlett Date: Sun, 25 Jul 2004 13:14:00 +0000 (+0000) Subject: r1583: Patch by Fabien Chevalier X-Git-Url: http://git.samba.org/samba.git/?p=abartlet%2Fsamba.git%2F.git;a=commitdiff_plain;h=2e6f3398d61237e04452530a1415f3e0bd8df3b5 r1583: Patch by Fabien Chevalier We may not have any interfaces up at all, so initialise the return variable. Fixes Debian bug #252591 Andrew Bartlett (This used to be commit 35aabae9d9bf66ef2c8eb4e07a850c606d8236d2) --- diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c index b71995998f5..a1c4f4deec0 100644 --- a/source3/nsswitch/wins.c +++ b/source3/nsswitch/wins.c @@ -90,7 +90,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count) { int fd = -1; struct ip_service *address = NULL; - struct in_addr *ret; + struct in_addr *ret = NULL; int j, flags = 0; if (!initialised) {