From: Arran Cudbard-Bell Date: Thu, 19 Dec 2019 21:57:45 +0000 (-0800) Subject: Always initialise priority X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dd230423eba60ca7041b7a2a12545c4e71acb79;p=thirdparty%2Ffreeradius-server.git Always initialise priority --- diff --git a/src/lib/unlang/interpret.c b/src/lib/unlang/interpret.c index e65f6dc76a7..73b16c63a97 100644 --- a/src/lib/unlang/interpret.c +++ b/src/lib/unlang/interpret.c @@ -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, "")); 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);