summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-05-27 13:28:47 +0200
committerMichael Adam <obnox@samba.org>2013-06-21 10:44:18 +0200
commit0ad89c3cc96ce9f66325424adc96babdcc2781d5 (patch)
tree2cd5128099babed3d926cc94291ee2a773da89b2
parente211b5c5d248756eb48a60ac05144a346e111a5e (diff)
downloadsamba-0ad89c3cc96ce9f66325424adc96babdcc2781d5.tar.gz
samba-0ad89c3cc96ce9f66325424adc96babdcc2781d5.tar.bz2
samba-0ad89c3cc96ce9f66325424adc96babdcc2781d5.zip
s3:passdb/samba_dsdb fix some compiler warnings
about gids and group_sids being potentially uninitialized Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/passdb/pdb_samba_dsdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_samba_dsdb.c b/source3/passdb/pdb_samba_dsdb.c
index 0ff603765d..7657c69d73 100644
--- a/source3/passdb/pdb_samba_dsdb.c
+++ b/source3/passdb/pdb_samba_dsdb.c
@@ -1201,8 +1201,8 @@ static NTSTATUS fake_enum_group_memberships(struct pdb_samba_dsdb_state *state,
{
NTSTATUS status;
size_t num_groups = 0;
- struct dom_sid *group_sids;
- gid_t *gids;
+ struct dom_sid *group_sids = NULL;
+ gid_t *gids = NULL;
TALLOC_CTX *tmp_ctx;
tmp_ctx = talloc_new(mem_ctx);