Move variable declaration to the start of the block
authorAlan T. DeKok <aland@freeradius.org>
Tue, 21 Sep 2010 09:09:44 +0000 (11:09 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 21 Sep 2010 09:09:44 +0000 (11:09 +0200)
src/main/auth.c

index b8f1edf..0545114 100644 (file)
@@ -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",