summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-05-16 11:03:55 -0700
committerEdward Thomson <ethomson@microsoft.com>2013-05-24 07:11:22 -0500
commit43efc4493d72b4666d8fe31b89c3aad97c3ec1a3 (patch)
tree36a3edde4517dbad68cefb460b05831a7fb7e59c /include/git2/commit.h
parent26ab6284b20a3709adc7641a52250f72df9257aa (diff)
downloadlibgit2-43efc4493d72b4666d8fe31b89c3aad97c3ec1a3.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/commit.h')
0 files changed, 0 insertions, 0 deletions