summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-05-16 11:03:55 -0700
committerRussell Belfer <rb@github.com>2013-05-16 11:03:55 -0700
commit57908bb3a3b3a0f3de75d13ef432e3964dab9212 (patch)
tree50c875ca94f2537733b36193b776a9e69aee1592 /include/git2/diff.h
parent12f831fa1500bdcd1b9a2ef20c4897904983af8e (diff)
downloadlibgit2-57908bb3a3b3a0f3de75d13ef432e3964dab9212.tar.gz
Ensure reuc vector is always valid
In theory, if there was a problem reading the REUC data, the read_reuc() routine could have left uninitialized and invalid data in the git_index vector. This moves the line that inserts a new entry into the vector down to the bottom of the routine so we know all the content is already valid. Also, per @linquize, this uses calloc to ensure no uninitialized data.
Diffstat (limited to 'include/git2/diff.h')
0 files changed, 0 insertions, 0 deletions