summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-07-25 14:15:01 -0700
committerBrian Behlendorf <[email protected]>2017-02-03 10:23:42 -0800
commite56852059f01b1f6f3dd33a35498a37411ea00d8 (patch)
tree93bb55120b9362e0d98173b918e802cf50414e32 /module
parent1f734a62ac8f8b9bb3b6e3ad5397fc94f205c0f6 (diff)
Fix uninitialized variable in avl_add()
Silence the following warning when compiling with gcc 5.4.0. Specifically gcc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609. module/avl/avl.c: In function ‘avl_add’: module/avl/avl.c:647:2: warning: ‘where’ may be used uninitialized in this function [-Wmaybe-uninitialized] avl_insert(tree, new_node, where); Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/avl/avl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/avl/avl.c b/module/avl/avl.c
index abf74bf72..86183fea0 100644
--- a/module/avl/avl.c
+++ b/module/avl/avl.c
@@ -630,7 +630,7 @@ avl_insert_here(
void
avl_add(avl_tree_t *tree, void *new_node)
{
- avl_index_t where;
+ avl_index_t where = 0;
/*
* This is unfortunate. We want to call panic() here, even for