Fix two bogus uninitalized variable warnings
authorVolker Lendecke <vl@samba.org>
Sun, 25 May 2008 11:44:59 +0000 (13:44 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 25 May 2008 11:53:44 +0000 (13:53 +0200)
(This used to be commit 194ea682d9a5c12a0125fecc20349ca9cc3d3ea1)

source3/libsmb/dsgetdcname.c

index d57689cd4834a6262610622a75fa3769c39ba214..be38db1a3ac38eb61969c41fddffff10c3470df5 100644 (file)
@@ -920,7 +920,8 @@ static NTSTATUS make_dc_info_from_cldap_reply(TALLOC_CTX *mem_ctx,
                                              union nbt_cldap_netlogon *r,
                                              struct netr_DsRGetDCNameInfo **info)
 {
-       const char *dc_hostname, *dc_domain_name;
+       const char *dc_hostname = NULL;
+       const char *dc_domain_name = NULL;
        const char *dc_address = NULL;
        const char *dc_forest = NULL;
        uint32_t dc_address_type = 0;