summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-07-25 13:14:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:15 -0500
commit2e6f3398d61237e04452530a1415f3e0bd8df3b5 (patch)
tree1fc3231df2e3da56ccb2cf889b638ad09c06725b /source3/nsswitch
parent2b90927fa38e155a3ceede971da7968bdd59e762 (diff)
downloadsamba-2e6f3398d61237e04452530a1415f3e0bd8df3b5.tar.gz
samba-2e6f3398d61237e04452530a1415f3e0bd8df3b5.tar.bz2
samba-2e6f3398d61237e04452530a1415f3e0bd8df3b5.zip
r1583: Patch by Fabien Chevalier <fabien.chevalier@supelec.fr>
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)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wins.c2
1 files changed, 1 insertions, 1 deletions
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) {