diff options
author | Brian Behlendorf <[email protected]> | 2016-07-25 14:15:01 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-07-25 14:21:34 -0700 |
commit | 273ff9b5ccc438e3099809c43229cc75503cff68 (patch) | |
tree | a56faa25a092f3813d8ef3f7b671511fa3ae0ef7 /module/avl | |
parent | 2c6abf15ff5bcc979653eef0131f90d4f0fede21 (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/avl')
-rw-r--r-- | module/avl/avl.c | 2 |
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 |