From: Andrew Bartlett Date: Sun, 25 Jul 2004 13:14:00 +0000 (+0000) Subject: r1583: Patch by Fabien Chevalier X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5950 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35aabae9d9bf66ef2c8eb4e07a850c606d8236d2;p=thirdparty%2Fsamba.git 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 --- diff --git a/source/nsswitch/wins.c b/source/nsswitch/wins.c index b71995998f5..a1c4f4deec0 100644 --- a/source/nsswitch/wins.c +++ b/source/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) {