Don't declare variables in code. They got at the top of the function.
authoraland <aland>
Mon, 17 May 2004 09:52:05 +0000 (09:52 +0000)
committeraland <aland>
Mon, 17 May 2004 09:52:05 +0000 (09:52 +0000)
src/modules/rlm_realm/rlm_realm.c

index 8881595..60e05a5 100644 (file)
@@ -79,11 +79,11 @@ static int check_for_realm(void *instance, REQUEST *request, REALM **returnrealm
        VALUE_PAIR *vp;
        REALM *realm;
 
+        struct realm_config_t *inst = instance;
+
        /* initiate returnrealm */
        *returnrealm = NULL;
 
-        struct realm_config_t *inst = instance;
-
        /*
         *      If the request has a proxy entry, then it's a proxy
         *      reply, and we're walking through the module list again.