From: Arran Cudbard-Bell Date: Tue, 21 Nov 2017 15:08:20 +0000 (+0000) Subject: clang scan fix X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f63dec84da56e57b85528be125ecb54f16335e7;p=thirdparty%2Ffreeradius-server.git clang scan fix --- diff --git a/src/main/unlang_interpret.c b/src/main/unlang_interpret.c index 7f7ba598385..f09d5b5ead1 100644 --- a/src/main/unlang_interpret.c +++ b/src/main/unlang_interpret.c @@ -2405,9 +2405,8 @@ static rlm_rcode_t unlang_run(REQUEST *request) * We don't have a return code yet. */ rlm_rcode_t result = RLM_MODULE_UNKNOWN; - unlang_stack_frame_t *frame; - unlang_stack_t *stack = request->stack; + unlang_stack_frame_t *frame = &stack->frame[stack->depth]; /* Quiet static analysis */ #ifndef NDEBUG if (DEBUG_ENABLED5) DEBUG("###### unlang_run is starting");