Properly evaluate variables when inserting them into a map.
authormpi <mpi@openbsd.org>
Wed, 13 Sep 2023 13:47:58 +0000 (13:47 +0000)
committermpi <mpi@openbsd.org>
Wed, 13 Sep 2023 13:47:58 +0000 (13:47 +0000)
Somehow missed in previous, regression reported by anton@.

usr.sbin/btrace/btrace.c

index 6ab0322..3338461 100644 (file)
@@ -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;
        }