]> git.ipfire.org Git - thirdparty/git.git/commit - rerere.c
Use MOVE_ARRAY
authorSZEDER Gábor <szeder.dev@gmail.com>
Mon, 22 Jan 2018 17:50:09 +0000 (18:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jan 2018 19:32:51 +0000 (11:32 -0800)
commitf919ffebed3c570bf3c2a5f36444527ea5df42de
tree3d89f307b743c893848413a72d32b36e9fd8ec17
parent8279ed033f703d4115bee620dccd32a9ec94d9aa
Use MOVE_ARRAY

Use the helper macro MOVE_ARRAY to move arrays.  This is shorter and
safer, as it automatically infers the size of elements.

Patch generated by Coccinelle and contrib/coccinelle/array.cocci in
Travis CI's static analysis build job.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c
commit.c
diffcore-rename.c
dir.c
parse-options.c
read-cache.c
refs/ref-cache.c
replace_object.c
rerere.c