From: mpi Date: Wed, 13 Sep 2023 13:47:58 +0000 (+0000) Subject: Properly evaluate variables when inserting them into a map. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1a48bdff38fd76ce524a23eb5a57f5c11336faff;p=openbsd Properly evaluate variables when inserting them into a map. Somehow missed in previous, regression reported by anton@. --- 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; }