Fix cppcheck warning in buf_init()

Cppcheck 1.63 erroneously complains about an uninitialized value
in buf_init().  Newer versions of cppcheck (1.72) handle this
correctly but we'll initialize the value anyway to silence the
warning.

Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5203
This commit is contained in:
Brian Behlendorf 2016-09-30 15:04:21 -07:00 committed by GitHub
parent f4ce6d464c
commit 2db28197fe

View File

@ -1249,7 +1249,7 @@ hdr_recl(void *unused)
static void
buf_init(void)
{
uint64_t *ct;
uint64_t *ct = NULL;
uint64_t hsize = 1ULL << 12;
int i, j;