diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-02-08 17:39:07 +0000 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-02-08 17:39:07 +0000 |
commit | 7403be0eadcc772cd3a44615f34bff0ce7009f86 (patch) | |
tree | fe53f0f33bf81d69bb5c79968ba6761f7da6d161 /src/lib | |
parent | 6ade491f770904d8244863904359c449b5aeb5f7 (diff) | |
parent | 66d495656348ae04b5ab725e0b44dad5f45e1a9b (diff) | |
download | ouroboros-7403be0eadcc772cd3a44615f34bff0ce7009f86.tar.gz ouroboros-7403be0eadcc772cd3a44615f34bff0ce7009f86.zip |
Merged in sandervrijders/ouroboros/be-pedantic-sometimes (pull request #365)
lib, ipcpd: Comply to pedantic C99
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/btree.c | 5 |
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; |