From 2e6f3398d61237e04452530a1415f3e0bd8df3b5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 25 Jul 2004 13:14:00 +0000 Subject: 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) --- source3/nsswitch/wins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c index b71995998f..a1c4f4deec 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) { -- cgit