aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/arc.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-09-30 15:04:21 -0700
committerGitHub <[email protected]>2016-09-30 15:04:21 -0700
commit2db28197feb44d102f55e49d8193444ec6f47d29 (patch)
tree7041c43dd8eba751f57d168ec0f28b17df479538 /module/zfs/arc.c
parentf4ce6d464c218eb4dc1fc94c8931a1e76b6742c5 (diff)
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 <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #5203
Diffstat (limited to 'module/zfs/arc.c')
-rwxr-xr-xmodule/zfs/arc.c2
1 files changed, 1 insertions, 1 deletions
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;