From 90a18110e9c014ff33977be4656886b093c7e022 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 24 Nov 2004 01:03:23 +0000 Subject: r3931: Fix all "may be used uninitialized" and "shadow" warnings. Jeremy. (This used to be commit 8e979772a640bb4f00f4d72b6a9c837b8ef14333) --- source3/nsswitch/winbindd_wins.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_wins.c b/source3/nsswitch/winbindd_wins.c index 6b37e5bcf4..107c9d264c 100644 --- a/source3/nsswitch/winbindd_wins.c +++ b/source3/nsswitch/winbindd_wins.c @@ -88,7 +88,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count) { int fd; struct ip_service *ret = NULL; - struct in_addr *return_ip; + struct in_addr *return_ip = NULL; int j, i, flags = 0; *count = 0; @@ -121,7 +121,9 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count) j--) { struct in_addr *bcast = iface_n_bcast(j); return_ip = name_query(fd,name,0x20,True,True,*bcast,count, &flags, NULL); - if (return_ip) break; + if (return_ip) { + break; + } } close(fd); -- cgit