summaryrefslogtreecommitdiff
path: root/examples/rev-parse.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-05-15 11:04:37 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-15 11:04:37 +0100
commit27576416206f696edb16cf2e22271953903e731f (patch)
tree782803d331a3152c53abf2014d7f9cf25136ded5 /examples/rev-parse.c
parent8e5281c88b860cce7a6a2f4a00c28b6fb00720b0 (diff)
downloadlibgit2-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 'examples/rev-parse.c')
0 files changed, 0 insertions, 0 deletions