libgit2/libgit2 — pull request #2417 by carlosmn (2014-06-10 22:12:47+00:00)
Title: revwalk: more sensible array handling

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.

---

This should fix libgit2/rugged#384