From a773e929bf67b109b84820f294f9f8daa97d08c8 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 24 Apr 2022 16:45:25 +0200 Subject: [PATCH] Fix checking type of wrong value We already checked dst_val, we need to check src_val too! --- src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.c b/src/context.c index 06d56a5..3c84143 100644 --- a/src/context.c +++ b/src/context.c @@ -365,7 +365,7 @@ apfl_list_append_list(apfl_ctx ctx, apfl_stackidx dst_index, apfl_stackidx src_i return APFL_RESULT_ERR; } - if (dst_val->type != VALUE_LIST) { + if (src_val.type != VALUE_LIST) { assert(apfl_stack_drop(ctx, src_index)); return APFL_RESULT_ERR; }