From d701d23b604dd21288e894b7d286de206eca2857 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 30 Jul 2008 16:06:30 -0700 Subject: Fix uninitialized variables. Jeremy. (This used to be commit 1db7e00a5400863fd5dbb81c1a4c6ea6092d0495) --- source3/lib/netapi/cm.c | 2 +- source3/libads/kerberos_keytab.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/netapi/cm.c b/source3/lib/netapi/cm.c index 8eaabb3cda..8ea31e54f9 100644 --- a/source3/lib/netapi/cm.c +++ b/source3/lib/netapi/cm.c @@ -165,7 +165,7 @@ WERROR libnetapi_open_pipe(struct libnetapi_ctx *ctx, const struct ndr_syntax_id *interface, struct rpc_pipe_client **presult) { - struct rpc_pipe_client *result; + struct rpc_pipe_client *result = NULL; NTSTATUS status; if (!cli || !presult) { diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c index 87b85550c5..77a50e4221 100644 --- a/source3/libads/kerberos_keytab.c +++ b/source3/libads/kerberos_keytab.c @@ -276,6 +276,7 @@ int ads_keytab_add_entry(ADS_STRUCT *ads, const char *srvPrinc) ret = -1; goto out; } + ZERO_STRUCT(password); password.data = password_s; password.length = strlen(password_s); -- cgit