path.c: use xmalloc() in add_to_trie()
authorAndrey Okoshkin <redacted>
Tue, 24 Oct 2017 15:15:05 +0000 (18:15 +0300)
committerJunio C Hamano <redacted>
Wed, 25 Oct 2017 07:16:22 +0000 (16:16 +0900)
commit55d7d15847e84d531f712f9fd6a7117283b208a3
tree5cdd03f2c2cb1734f1efcb63b7d482fc05a2e0e6
parent42e6fde5c28150206956ea4be490d886c4ecbd68
path.c: use xmalloc() in add_to_trie()

Add usage of xmalloc() instead of malloc() in add_to_trie() as xmalloc wraps
and checks memory allocation result.

Signed-off-by: Andrey Okoshkin <redacted>
Signed-off-by: Junio C Hamano <redacted>
path.c
git clone https://git.99rst.org/PROJECT