Ensure we don't access an uninitialized variable
authorJeremy Allison <jra@samba.org>
Sat, 12 Jan 2008 06:44:33 +0000 (22:44 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2008 06:44:33 +0000 (22:44 -0800)
(CID 535 - actually false but easy to shut up :-).
Jeremy.

source/winbindd/winbindd_rpc.c

index f5e1226447151e77ebe86c917f2c3ab88a0c33c8..34ba0498e0a6128e85df41e9211e3e8eacf33482 100644 (file)
@@ -308,7 +308,7 @@ NTSTATUS msrpc_sid_to_name(struct winbindd_domain *domain,
 {
        char **domains;
        char **names;
-       enum lsa_SidType *types;
+       enum lsa_SidType *types = NULL;
        NTSTATUS result;
        struct rpc_pipe_client *cli;
        POLICY_HND lsa_policy;