s3:passdb/samba_dsdb fix some compiler warnings
authorChristian Ambach <ambi@samba.org>
Mon, 27 May 2013 11:28:47 +0000 (13:28 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 21 Jun 2013 08:44:18 +0000 (10:44 +0200)
about gids and group_sids being potentially uninitialized

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/passdb/pdb_samba_dsdb.c

index 0ff603765d9f177253f7059f40b7c4fde103353b..7657c69d7307e48832862d21a4e7a5eb457a3eff 100644 (file)
@@ -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);