From: Alan T. DeKok Date: Tue, 21 Sep 2010 09:09:44 +0000 (+0200) Subject: Move variable declaration to the start of the block X-Git-Tag: release_3_0_0_beta0~1229 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=e4d2860552e745ba785ee8716b918b288b6194a6 Move variable declaration to the start of the block --- 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",