summaryrefslogtreecommitdiff
path: root/include/git2/oidarray.h
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2019-04-16 18:13:31 +0200
committerTobias Nießen <tniessen@tnie.de>2019-04-16 18:13:31 +0200
commitcc8a9892705f76a53cfea4e8c2f87b75480aa77a (patch)
treeeca0bbf04af68cd1f0fceef88e616408dfebc49a /include/git2/oidarray.h
parented959ca2f158862a59584cbfa0d39a845419f514 (diff)
downloadlibgit2-cc8a9892705f76a53cfea4e8c2f87b75480aa77a.tar.gz
config_file: check result of git_array_alloc
git_array_alloc can return NULL if no memory is available, causing a segmentation fault in memset. This adds GIT_ERROR_CHECK_ALLOC similar to how other parts of the code base deal with the return value of git_array_alloc.
Diffstat (limited to 'include/git2/oidarray.h')
0 files changed, 0 insertions, 0 deletions