clar_libgit2_alloc.c
2.47 KB
-
tests: only copy when `ptr` is non-NULL · 27576416
Avoid passing a `NULL` ptr to `memcpy` -- that's UB (even if size is 0)
Edward Thomson committed
Avoid passing a `NULL` ptr to `memcpy` -- that's UB (even if size is 0)