summaryrefslogtreecommitdiff
path: root/src/oidarray.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-02-22 14:01:50 +0100
committerPatrick Steinhardt <ps@pks.im>2016-02-23 11:50:23 +0100
commitbe8479c9873315afcf6b86f0b1bb79052a23b363 (patch)
tree320a0241fad1398ffca365e7cccf031de77fc552 /src/oidarray.h
parentbac52ab0f2e8d09de1f98590f177e9e847cdb11b (diff)
downloadlibgit2-be8479c9873315afcf6b86f0b1bb79052a23b363.tar.gz
diff_print: assert patch is non-NULL
When invoking `diff_print_info_init_frompatch` it is obvious that the patch should be non-NULL. We explicitly check if the variable is set and continue afterwards, happily dereferencing the potential NULL-pointer. Fix this by instead asserting that patch is set. This also silences Coverity.
Diffstat (limited to 'src/oidarray.h')
0 files changed, 0 insertions, 0 deletions