From e4d2860552e745ba785ee8716b918b288b6194a6 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 21 Sep 2010 11:09:44 +0200 Subject: [PATCH] Move variable declaration to the start of the block --- src/main/auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/auth.c b/src/main/auth.c index b8f1edf..0545114 100644 --- a/src/main/auth.c +++ b/src/main/auth.c @@ -175,9 +175,10 @@ static int rad_check_password(REQUEST *request) */ cur_config_item = request->config_items; while(((auth_type_pair = pairfind(cur_config_item, PW_AUTH_TYPE, 0))) != NULL) { + DICT_VALUE *dv; auth_type = auth_type_pair->vp_integer; auth_type_count++; - DICT_VALUE *dv = dict_valbyattr(auth_type_pair->attribute, + dv = dict_valbyattr(auth_type_pair->attribute, auth_type_pair->vp_integer, 0); RDEBUG2("Found Auth-Type = %s", -- 2.1.4