summaryrefslogtreecommitdiff
path: root/src/lib/btree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/btree.c')
-rw-r--r--src/lib/btree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/btree.c b/src/lib/btree.c
index 645e7c7a..38302dae 100644
--- a/src/lib/btree.c
+++ b/src/lib/btree.c
@@ -388,9 +388,12 @@ int btree_insert(struct btree * tree,
void * val)
{
struct btnode * rgt = NULL;
- struct key_val kv = {key, val};
+ struct key_val kv;
struct key_val med;
+ kv.key = key;
+ kv.val = val;
+
if (tree == NULL || val == NULL)
return -EINVAL;