diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-05-15 11:04:37 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-05-15 11:04:37 +0100 |
commit | 27576416206f696edb16cf2e22271953903e731f (patch) | |
tree | 782803d331a3152c53abf2014d7f9cf25136ded5 /tests/benchmarks/hash-object__write_text_1kb | |
parent | 8e5281c88b860cce7a6a2f4a00c28b6fb00720b0 (diff) | |
download | libgit2-pks/test-allocator.tar.gz |
tests: only copy when `ptr` is non-NULLpks/test-allocator
Avoid passing a `NULL` ptr to `memcpy` -- that's UB (even if size is 0)
Diffstat (limited to 'tests/benchmarks/hash-object__write_text_1kb')
0 files changed, 0 insertions, 0 deletions