summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-12-10 17:52:30 +0100
committerJeremy Allison <jra@samba.org>2013-12-12 14:21:28 -0800
commitcad07c76768a96cb3ae8027f653926f11ee545ff (patch)
tree070a8f1a38126f2fbe4f9622a3f6174f11876220
parent2bd15d1b830b177ea234aa29ff696379abbcd683 (diff)
downloadsamba-cad07c76768a96cb3ae8027f653926f11ee545ff.tar.gz
samba-cad07c76768a96cb3ae8027f653926f11ee545ff.tar.xz
samba-cad07c76768a96cb3ae8027f653926f11ee545ff.zip
s4:dsdb fix compiler warnings
about potentially uninitialized variables Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/update_keytab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/update_keytab.c b/source4/dsdb/samdb/ldb_modules/update_keytab.c
index bec4a83abfc..0bc7f2ac48b 100644
--- a/source4/dsdb/samdb/ldb_modules/update_keytab.c
+++ b/source4/dsdb/samdb/ldb_modules/update_keytab.c
@@ -379,7 +379,7 @@ static int update_kt_prepare_commit(struct ldb_module *module)
struct smb_krb5_context *smb_krb5_context;
int krb5_ret = smb_krb5_init_context(data, ldb_get_event_context(ldb), ldb_get_opaque(ldb, "loadparm"),
&smb_krb5_context);
- TALLOC_CTX *tmp_ctx;
+ TALLOC_CTX *tmp_ctx = NULL;
if (krb5_ret != 0) {
ldb_asprintf_errstring(ldb, "Failed to setup krb5_context: %s", error_message(krb5_ret));