summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-11 23:41:17 -0800
committerJeremy Allison <jra@samba.org>2008-01-11 23:41:17 -0800
commitbd317be33b7b2acb74a14b18c67581f3d1d5e8f0 (patch)
treec7f57b30ee710912dbc4225a7754f6a897c9df2d
parent23aab9dab781a160ababd475e8333c04570fd08d (diff)
downloadsamba-bd317be33b7b2acb74a14b18c67581f3d1d5e8f0.tar.gz
samba-bd317be33b7b2acb74a14b18c67581f3d1d5e8f0.tar.bz2
samba-bd317be33b7b2acb74a14b18c67581f3d1d5e8f0.zip
Stop Coverity complaining about uninitialized variables.
Jeremy. (This used to be commit 041f1d298c1e72adb263b32f454cdf3603e45416)
-rw-r--r--source3/utils/net_rpc_rights.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_rights.c b/source3/utils/net_rpc_rights.c
index 23be8859e0..5f222b8c7e 100644
--- a/source3/utils/net_rpc_rights.c
+++ b/source3/utils/net_rpc_rights.c
@@ -28,9 +28,9 @@ static NTSTATUS sid_to_name(struct rpc_pipe_client *pipe_hnd,
fstring name)
{
POLICY_HND pol;
- enum lsa_SidType *sid_types;
+ enum lsa_SidType *sid_types = NULL;
NTSTATUS result;
- char **domains, **names;
+ char **domains = NULL, **names = NULL;
result = rpccli_lsa_open_policy(pipe_hnd, mem_ctx, True,
SEC_RIGHTS_MAXIMUM_ALLOWED, &pol);
@@ -202,7 +202,7 @@ static NTSTATUS enum_accounts_for_privilege(struct rpc_pipe_client *pipe_hnd,
NTSTATUS result;
uint32 enum_context=0;
uint32 pref_max_length=0x1000;
- DOM_SID *sids;
+ DOM_SID *sids = NULL;
uint32 count=0;
int i;
fstring name;