s4:dsdb fix compiler warnings
authorChristian Ambach <ambi@samba.org>
Tue, 10 Dec 2013 16:52:29 +0000 (17:52 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 12 Dec 2013 22:21:28 +0000 (14:21 -0800)
about potentially uninitialized variables

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/samldb.c

index b79810279c2eed625fb274aa71a27a50ffcc18ea..144d5a59bf29791463d646e77c448ff41a0b190e 100644 (file)
@@ -2002,7 +2002,7 @@ static int samldb_service_principal_names_change(struct samldb_ctx *ac)
 
        /* Create a temporary message for fetching the "sAMAccountName" */
        if (el2 != NULL) {
-               char *tempstr, *tempstr2;
+               char *tempstr, *tempstr2 = NULL;
                const char *acct_attrs[] = { "sAMAccountName", NULL };
 
                msg = ldb_msg_new(ac->msg);