summaryrefslogtreecommitdiff
path: root/tests/diff/blob.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-06-11 00:06:44 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-06-11 00:06:44 +0200
commitf9a97667945a87abfca50e153a7d2fdf5c4319a8 (patch)
tree83db2d6e327e2c2636489a2fef53b3f07dbfe041 /tests/diff/blob.c
parent7064cdafbd25f66de016467b381d9f4474fba40a (diff)
downloadlibgit2-f9a97667945a87abfca50e153a7d2fdf5c4319a8.tar.gz
revwalk: more sensible array handlingcmn/revwalk-array-fix
Instead of using a sentinel empty value to detect the last commit, let's check for when we get a NULL from popping the stack, which lets us know when we're done. The current code causes us to read uninitialized data, although only on RHEL/CentOS 6 in release mode. This is a readability win overall.
Diffstat (limited to 'tests/diff/blob.c')
0 files changed, 0 insertions, 0 deletions