From cad07c76768a96cb3ae8027f653926f11ee545ff Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Tue, 10 Dec 2013 17:52:30 +0100 Subject: [PATCH] s4:dsdb fix compiler warnings about potentially uninitialized variables Signed-off-by: Christian Ambach Reviewed-by: Jeremy Allison --- source4/dsdb/samdb/ldb_modules/update_keytab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.11.4.GIT