summaryrefslogtreecommitdiff
path: root/check-racy.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-07-15 22:20:54 +0200
committerJunio C Hamano <gitster@pobox.com>2017-07-17 14:55:10 -0700
commit177366415b95fb72bc2c37d55a936ff101986285 (patch)
tree51a96546371b788e5e11e4e28dddcb60a372a079 /check-racy.c
parentf331ab9d4cb21942dcde6d879aaca6a1784e8cb6 (diff)
downloadgit-177366415b95fb72bc2c37d55a936ff101986285.tar.gz
apply: use COPY_ARRAY and MOVE_ARRAY in update_image()
Simplify the code by using the helper macros COPY_ARRAY and MOVE_ARRAY, which also makes them more robust in the case we copy or move no lines, as they allow using NULL points in that case, while memcpy(3) and memmove(3) don't. Found with Clang's UBSan. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'check-racy.c')
0 files changed, 0 insertions, 0 deletions