From 85874458852697df8f7c45fb9e7f848367d07a07 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 10 Jan 2018 12:14:57 +0100 Subject: [PATCH] winbindd: initialize some stack pointers to NULL This reduces the diff in the following commit. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- source3/winbindd/winbindd_util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index 0f9690888a8..9c602de250a 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -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; -- 2.47.3