s3: Fix a (invalid) uninitialized variable warning
authorVolker Lendecke <vl@samba.org>
Wed, 23 Mar 2011 10:08:46 +0000 (11:08 +0100)
committerVolker Lendecke <vlendec@samba.org>
Wed, 23 Mar 2011 10:13:14 +0000 (11:13 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 23 11:13:14 CET 2011 on sn-devel-104

source3/auth/auth_netlogond.c

index 66bd71373d44ac6acd6b3288af824f5277cce1b2..5c76542533607b28a9f4410f657448c46701a885 100644 (file)
@@ -205,7 +205,7 @@ static NTSTATUS get_ldapi_ctx(TALLOC_CTX *mem_ctx, struct tldap_context **pld)
 static NTSTATUS mymachinepw(uint8_t pwd[16])
 {
        TALLOC_CTX *frame = talloc_stackframe();
-       struct tldap_context *ld;
+       struct tldap_context *ld = NULL;
        struct tldap_message *rootdse, **msg;
        const char *attrs[1] = { "unicodePwd" };
        char *default_nc, *myname;