mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
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 <behlendorf1@llnl.gov>
This commit is contained in:
parent
2c6abf15ff
commit
273ff9b5cc
@ -630,7 +630,7 @@ avl_insert_here(
|
|||||||
void
|
void
|
||||||
avl_add(avl_tree_t *tree, void *new_node)
|
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
|
* This is unfortunate. We want to call panic() here, even for
|
||||||
|
Loading…
Reference in New Issue
Block a user