summaryrefslogtreecommitdiff
path: root/usr.sbin/btrace
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2021-04-21 10:34:37 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2021-04-21 10:34:37 +0000
commit06107cad10033b73935ac7d3e337796f1ecfb420 (patch)
tree347717566a6f0dcc9e871483cfe1176b86b8ba4b /usr.sbin/btrace
parentfb7f5eeab5f575d51e4e20f4754fbda41eb2bb16 (diff)
Always initialized min value for an histogram.
Diffstat (limited to 'usr.sbin/btrace')
-rw-r--r--usr.sbin/btrace/bt_parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/btrace/bt_parse.y b/usr.sbin/btrace/bt_parse.y
index dbf68f2c511..3fcb212108f 100644
--- a/usr.sbin/btrace/bt_parse.y
+++ b/usr.sbin/btrace/bt_parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: bt_parse.y,v 1.27 2021/04/21 10:29:49 mpi Exp $ */
+/* $OpenBSD: bt_parse.y,v 1.28 2021/04/21 10:34:36 mpi Exp $ */
/*
* Copyright (c) 2019-2021 Martin Pieuchot <mpi@openbsd.org>
@@ -595,7 +595,7 @@ bh_inc(const char *hname, struct bt_arg *hval, struct bt_arg *hrange)
if (hrange == NULL) {
/* Power-of-2 histogram */
} else {
- long min, max;
+ long min = 0, max;
int count = 0;
/* Linear histogram */