summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-12-08 15:34:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:46 -0500
commitab51c18cc9a3273c5d8ca11d97882e6ca2266d00 (patch)
tree230f44857d920b7d019eedae20c7c5cd64d92712
parent7bf8de2f02099705f4baddb2b581afa37bff9cb6 (diff)
downloadsamba-ab51c18cc9a3273c5d8ca11d97882e6ca2266d00.tar.gz
samba-ab51c18cc9a3273c5d8ca11d97882e6ca2266d00.tar.bz2
samba-ab51c18cc9a3273c5d8ca11d97882e6ca2266d00.zip
r12129: Fix uninitialized variables.
Volker (This used to be commit 8a7d6eb2c081c0d74b62aa76dc243946df62ced2)
-rw-r--r--source3/passdb/pdb_ldap.c2
-rw-r--r--source3/utils/net_groupmap.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index fac95e3786..20cf2d328e 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -3193,7 +3193,7 @@ static NTSTATUS ldapsam_enum_aliasmem(struct pdb_methods *methods,
char **values;
int i;
pstring filter;
- size_t num_members;
+ size_t num_members = 0;
*pp_members = NULL;
*p_num_members = 0;
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c
index 12c3c79ef4..9e897d8efc 100644
--- a/source3/utils/net_groupmap.c
+++ b/source3/utils/net_groupmap.c
@@ -678,6 +678,9 @@ static int net_groupmap_listmem(int argc, const char **argv)
return -1;
}
+ members = NULL;
+ num = 0;
+
if (!pdb_enum_aliasmem(&alias, &members, &num)) {
d_printf("Could not list members for sid %s\n", argv[0]);
return -1;