]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Always initialise priority
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 19 Dec 2019 21:57:45 +0000 (13:57 -0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 19 Dec 2019 21:57:45 +0000 (13:57 -0800)
src/lib/unlang/interpret.c

index e65f6dc76a78b22a0b7c16d9ec8ddda468bf74fd..73b16c63a97c35253a44d3cd01d53d61a134d49d 100644 (file)
@@ -598,7 +598,7 @@ static inline unlang_frame_action_t frame_eval(REQUEST *request, unlang_stack_fr
  */
 rlm_rcode_t unlang_interpret(REQUEST *request)
 {
-       int                     priority;
+       int                     priority = -1;
        unlang_frame_action_t   fa = UNLANG_FRAME_ACTION_NEXT;
 
        /*
@@ -621,8 +621,6 @@ rlm_rcode_t unlang_interpret(REQUEST *request)
                        fr_table_str_by_value(unlang_frame_action_table, fa, "<INVALID>"));
                switch (fa) {
                case UNLANG_FRAME_ACTION_NEXT:  /* Evaluate the current frame */
-                       priority = -1;
-
                        rad_assert(stack->depth > 0);
                        rad_assert(stack->depth < UNLANG_STACK_MAX);