]> git.proxmox.com Git - libgit2.git/commit
array: fix search for empty arrays
authorCarlos Martín Nieto <cmn@dwim.me>
Wed, 23 Mar 2016 15:51:52 +0000 (16:51 +0100)
committerCarlos Martín Nieto <cmn@dwim.me>
Sat, 1 Oct 2016 15:41:29 +0000 (17:41 +0200)
commitadfece0df2153234970ded1b0552c5150e7f0c53
tree54316f6d13ee041a51d3c48ecc309670cddb517a
parent5a9d850e76c0ff5bc3118f3d129e8a9b6c07c262
array: fix search for empty arrays

When the array is empty `cmp` never gets set by the comparison
function. Initialize it so we return ENOTFOUND in those cases.
src/array.h