From 1a48bdff38fd76ce524a23eb5a57f5c11336faff Mon Sep 17 00:00:00 2001 From: mpi Date: Wed, 13 Sep 2023 13:47:58 +0000 Subject: [PATCH] Properly evaluate variables when inserting them into a map. Somehow missed in previous, regression reported by anton@. --- usr.sbin/btrace/btrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index 6ab03222eb7..333846180a1 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.c,v 1.76 2023/09/11 19:01:26 mpi Exp $ */ +/* $OpenBSD: btrace.c,v 1.77 2023/09/13 13:47:58 mpi Exp $ */ /* * Copyright (c) 2019 - 2023 Martin Pieuchot @@ -990,6 +990,7 @@ stmt_insert(struct bt_stmt *bs, struct dt_evt *dtev) bval = ba_new(val, B_AT_LONG); break; default: + bval = baeval(bval, dtev); break; } -- 2.20.1