From 39c7fe679ecc3035720091a856c18baa45cbcfae Mon Sep 17 00:00:00 2001 From: James Peach Date: Mon, 15 May 2006 06:54:13 +0000 Subject: r15611: Remove used but uninitialised variable "count". (This used to be commit 71fd0d3de4a02b9a7b67914f6412f18ec0bb5e7a) --- source3/libsmb/namequery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/libsmb/namequery.c') diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 1033a375c56..0172ab9514e 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -1024,7 +1024,7 @@ static BOOL resolve_hosts(const char *name, int name_type, static BOOL resolve_ads(const char *name, int name_type, struct ip_service **return_iplist, int *return_count) { - int count, i = 0; + int i = 0; NTSTATUS status; TALLOC_CTX *ctx; struct dns_rr_srv *dcs = NULL; @@ -1047,7 +1047,7 @@ static BOOL resolve_ads(const char *name, int name_type, } if ( (*return_iplist = SMB_MALLOC_ARRAY(struct ip_service, numdcs)) == NULL ) { - DEBUG(0,("resolve_ads: malloc failed for %d entries\n", count )); + DEBUG(0,("resolve_ads: malloc failed for %d entries\n", numdcs )); return False; } -- cgit