From 2db28197feb44d102f55e49d8193444ec6f47d29 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 30 Sep 2016 15:04:21 -0700 Subject: 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 Signed-off-by: Brian Behlendorf Closes #5203 --- module/zfs/arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index f1f61291c..bf078aa94 100755 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -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; -- cgit v1.2.3