[PATCH] winbindd: move variable into scope

Michael Adam obnox at samba.org
Mon Feb 22 22:17:45 UTC 2016


review appreciated.

Thanks - Michael
-------------- next part --------------
From 1a00a7beeaf96954e9b5e0ea75557626feed8e22 Mon Sep 17 00:00:00 2001
From: Michael Adam <obnox at samba.org>
Date: Mon, 22 Feb 2016 15:18:26 +0100
Subject: [PATCH] winbindd: move a variable into scope

Signed-off-by: Michael Adam <obnox at samba.org>
---
 source3/winbindd/winbindd_misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source3/winbindd/winbindd_misc.c b/source3/winbindd/winbindd_misc.c
index 29831aa..3e024c9 100644
--- a/source3/winbindd/winbindd_misc.c
+++ b/source3/winbindd/winbindd_misc.c
@@ -88,7 +88,6 @@ static bool trust_is_transitive(struct winbindd_tdc_domain *domain)
 void winbindd_list_trusted_domains(struct winbindd_cli_state *state)
 {
 	struct winbindd_tdc_domain *dom_list = NULL;
-	struct winbindd_tdc_domain *d = NULL;
 	size_t num_domains = 0;
 	int extra_data_len = 0;
 	char *extra_data = NULL;
@@ -111,6 +110,7 @@ void winbindd_list_trusted_domains(struct winbindd_cli_state *state)
 	for ( i = 0; i < num_domains; i++ ) {
 		struct winbindd_domain *domain;
 		bool is_online = true;		
+		struct winbindd_tdc_domain *d = NULL;
 
 		d = &dom_list[i];
 		domain = find_domain_from_name_noinit(d->domain_name);
-- 
2.5.0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160222/f0044852/signature.sig>


More information about the samba-technical mailing list