[PATCH] winbindd: move variable into scope

Jeremy Allison jra at samba.org
Tue Feb 23 00:40:48 UTC 2016


On Mon, Feb 22, 2016 at 11:17:45PM +0100, Michael Adam wrote:
> review appreciated.
> 
> Thanks - Michael

LGTM. Pushed.
> 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
> 






More information about the samba-technical mailing list