]> the.earth.li Git - onak.git/commit
Cleanup key array logic to make llvm scan-build happier
authorJonathan McDowell <noodles@earth.li>
Tue, 22 Jul 2014 11:59:32 +0000 (12:59 +0100)
committerJonathan McDowell <noodles@earth.li>
Tue, 22 Jul 2014 12:00:59 +0000 (13:00 +0100)
commit5e40e676a7c4f640c9f850a379300c01a5fca69c
tree3d04208ae47ae6e19f1d378fca525724a47d71fd
parentff3b87253171dc8b76ec26b70ba738a2d3a603ac
Cleanup key array logic to make llvm scan-build happier

We can't have the size != 0 without keys != NULL, but the fact we
checked one at the start and the other later was confusing the static
checks from scan-build. Use size in both places; it keeps scan-build
happy and make the code a little easier to read.
keyarray.c