]> git.ipfire.org Git - thirdparty/git.git/commit
fast-import: use mem_pool_calloc()
authorRené Scharfe <l.s.r@web.de>
Tue, 26 Dec 2023 08:17:45 +0000 (09:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Dec 2023 19:06:23 +0000 (11:06 -0800)
commit5b7eec4bc517311f9ceb2dc7abadcc47ddc6b015
tree186a83c4ab0bd27e13b9c723ff8e69bc7cc99c1d
parent564d0252ca632e0264ed670534a51d18a689ef5d
fast-import: use mem_pool_calloc()

Use mem_pool_calloc() to get a zeroed buffer instead of zeroing it
ourselves.  This makes the code clearer and less repetitive.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-import.c