From 087d8dff4946d015a8341377963eda15253f8f32 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Sun, 1 Jun 2025 14:25:34 -0600 Subject: [PATCH] Frames always have an instruction --- src/lib/unlang/interpret.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/lib/unlang/interpret.c b/src/lib/unlang/interpret.c index 6d9310ba76..6cafc185c8 100644 --- a/src/lib/unlang/interpret.c +++ b/src/lib/unlang/interpret.c @@ -162,7 +162,7 @@ static void frame_dump(request_t *request, unlang_stack_frame_t *frame) { unlang_op_t *op = NULL; - if (frame->instruction) op = &unlang_ops[frame->instruction->type]; + op = &unlang_ops[frame->instruction->type]; instruction_dump(request, frame->instruction); @@ -197,13 +197,12 @@ static void frame_dump(request_t *request, unlang_stack_frame_t *frame) RDEBUG2("yielded %s", is_yielded(frame) ? "yes" : "no"); RDEBUG2("unwind %s", is_unwinding(frame) ? "yes" : "no"); - if (frame->instruction) { - RDEBUG2("control %s%s%s", - is_break_point(frame) ? "b" : "-", - is_return_point(frame) ? "r" : "-", - is_continue_point(frame) ? "c" : "-" - ); - } + RDEBUG2("control %s%s%s", + is_break_point(frame) ? "b" : "-", + is_return_point(frame) ? "r" : "-", + is_continue_point(frame) ? "c" : "-" + ); + /* * Call the custom frame dump function */ -- 2.47.3