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.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
Russell Belfer
2011-11-17 15:10:27 -08:00
committed by Vicent Marti
parent 1d09a1c88d
commit b762e576c6
16 changed files with 106 additions and 24 deletions

1
.gitignore vendored
View File

@@ -23,3 +23,4 @@ msvc/Release/
CMake*
*.cmake
.DS_Store
*~