r1583: Patch by Fabien Chevalier <fabien.chevalier@supelec.fr>
authorAndrew Bartlett <abartlet@samba.org>
Sun, 25 Jul 2004 13:14:00 +0000 (13:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:15 +0000 (10:52 -0500)
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

index b71995998f578468203b770a08d79d36baf6950d..a1c4f4deec058c0e5291611b6403a196fec2dee1 100644 (file)
@@ -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) {