artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a18479f
)
Always initialized min value for an histogram.
author
mpi
<mpi@openbsd.org>
Wed, 21 Apr 2021 10:34:36 +0000
(10:34 +0000)
committer
mpi
<mpi@openbsd.org>
Wed, 21 Apr 2021 10:34:36 +0000
(10:34 +0000)
usr.sbin/btrace/bt_parse.y
patch
|
blob
|
history
diff --git
a/usr.sbin/btrace/bt_parse.y
b/usr.sbin/btrace/bt_parse.y
index
dbf68f2
..
3fcb212
100644
(file)
--- a/
usr.sbin/btrace/bt_parse.y
+++ b/
usr.sbin/btrace/bt_parse.y
@@
-1,4
+1,4
@@
-/* $OpenBSD: bt_parse.y,v 1.2
7 2021/04/21 10:29:49
mpi Exp $ */
+/* $OpenBSD: bt_parse.y,v 1.2
8 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 */