diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2023-09-13 13:47:59 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2023-09-13 13:47:59 +0000 |
commit | 6dbb8b2c96f00e8a2ebdf3d9ca254214795256f9 (patch) | |
tree | 772cf5ff6c8c680f9d5017be239568d14b52f89b /usr.sbin/btrace | |
parent | 78133f95101a9f07eb1fac367c240dcadbe24522 (diff) |
Properly evaluate variables when inserting them into a map.
Somehow missed in previous, regression reported by anton@.
Diffstat (limited to 'usr.sbin/btrace')
-rw-r--r-- | usr.sbin/btrace/btrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <mpi@openbsd.org> @@ -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; } |