libgit2/libgit2 — pull request #488 by arrbee (2011-11-17 23:21:28+00:00)
Title: filebuf: add GIT_FILEBUF_INIT and protect multiple opens and cleanups

Update all stack allocations of git_filebuf to use GIT_FILEBUF_INIT
and make git_filebuf_open and git_filebuf_cleanup safe to be called
multiple times on the same buffer.