summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2016-03-23 16:51:52 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2016-03-23 16:51:52 +0100
commit1a2d8bd3c2b0f20e69b295c638b0e0c44c216756 (patch)
tree75ea988ffd0089ff93e4ff512b736a1e2d06962d /include/git2/commit.h
parent661db4f4829a0fe1330f275de6e58c34589f512f (diff)
downloadlibgit2-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