git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f948002
)
r15611: Remove used but uninitialised variable "count".
author
James Peach
<jpeach@samba.org>
Mon, 15 May 2006 06:54:13 +0000
(06:54 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:17:03 +0000
(11:17 -0500)
(This used to be commit
71fd0d3de4a02b9a7b67914f6412f18ec0bb5e7a
)
source3/libsmb/namequery.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/namequery.c
b/source3/libsmb/namequery.c
index 1033a375c56d674061dcf606d61fc6be8223e4bf..0172ab9514e320f3386a7c266ce925fde9cd6cbd 100644
(file)
--- 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;
}