From: mpi Date: Wed, 21 Apr 2021 10:34:36 +0000 (+0000) Subject: Always initialized min value for an histogram. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9f622a61bc7f1ac1416aab8bc535ddc6c53913cb;p=openbsd Always initialized min value for an histogram. --- 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 @@ -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 */