svn commit: samba r15611 - branches/SAMBA_3_0/source/libsmb trunk/source/libsmb

jpeach at samba.org jpeach at samba.org
Mon May 15 06:54:14 GMT 2006


Author: jpeach
Date: 2006-05-15 06:54:13 +0000 (Mon, 15 May 2006)
New Revision: 15611

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15611

Log:
Remove used but uninitialised variable "count".

Modified:
   branches/SAMBA_3_0/source/libsmb/namequery.c
   trunk/source/libsmb/namequery.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/namequery.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/namequery.c	2006-05-15 04:51:46 UTC (rev 15610)
+++ branches/SAMBA_3_0/source/libsmb/namequery.c	2006-05-15 06:54:13 UTC (rev 15611)
@@ -1024,7 +1024,7 @@
 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 @@
 	}
 		
 	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;
 	}
 

Modified: trunk/source/libsmb/namequery.c
===================================================================
--- trunk/source/libsmb/namequery.c	2006-05-15 04:51:46 UTC (rev 15610)
+++ trunk/source/libsmb/namequery.c	2006-05-15 06:54:13 UTC (rev 15611)
@@ -1024,7 +1024,7 @@
 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 @@
 	}
 		
 	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;
 	}
 



More information about the samba-cvs mailing list