diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2016-03-23 16:51:52 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2016-03-23 16:51:52 +0100 |
commit | 1a2d8bd3c2b0f20e69b295c638b0e0c44c216756 (patch) | |
tree | 75ea988ffd0089ff93e4ff512b736a1e2d06962d /include/git2/commit.h | |
parent | 661db4f4829a0fe1330f275de6e58c34589f512f (diff) | |
download | libgit2-1a2d8bd3c2b0f20e69b295c638b0e0c44c216756.tar.gz |
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.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions