mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
For zero byte files, avoid allocation - this avoids undefined behavior around malloc(0) and potentially memcpy(..., NULL, 0).
For zero byte files, avoid allocation - this avoids undefined behavior around malloc(0) and potentially memcpy(..., NULL, 0).