mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
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:
committed by
Vicent Marti
parent
1d09a1c88d
commit
b762e576c6
1
.gitignore
vendored
1
.gitignore
vendored
@@ -23,3 +23,4 @@ msvc/Release/
|
||||
CMake*
|
||||
*.cmake
|
||||
.DS_Store
|
||||
*~
|
||||
|
||||
Reference in New Issue
Block a user