mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-12-04 14:46:31 -05:00
Fix: Actually insert nodes into the tree if they are new
This commit is contained in:
parent
7d2b9fa3fd
commit
1f57410788
@ -594,6 +594,8 @@ static void _httpp_set_param_nocopy(avl_tree *tree, char *name, char *value, int
|
|||||||
if (replace && found) {
|
if (replace && found) {
|
||||||
avl_delete(tree, (void *)found, _free_vars);
|
avl_delete(tree, (void *)found, _free_vars);
|
||||||
avl_insert(tree, (void *)var);
|
avl_insert(tree, (void *)var);
|
||||||
|
} else if (!found) {
|
||||||
|
avl_insert(tree, (void *)var);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user