winbindd: initialize some stack pointers to NULL
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Jan 2018 11:14:57 +0000 (12:14 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 13 Jan 2018 11:55:06 +0000 (12:55 +0100)
This reduces the diff in the following commit.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/winbindd_util.c

index 0f9690888a897544ab1626f5ef06cb92d9db1712..9c602de250a0b7d8fc164c1d29f76cb5f1f45726 100644 (file)
@@ -145,9 +145,10 @@ add_trusted_domain(const char *domain_name, const char *alt_name,
 static struct winbindd_domain *
 add_trusted_domain_from_tdc(const struct winbindd_tdc_domain *tdc)
 {
-       struct winbindd_domain *domain;
+       struct winbindd_domain *domain = NULL;
        const char *dns_name = NULL;
-       const char **ignored_domains, **dom;
+       const char **ignored_domains = NULL;
+       const char **dom = NULL;
        int role = lp_server_role();
        const char *domain_name = tdc->domain_name;
        const struct dom_sid *sid = &tdc->sid;