t/helper/test-hashmap.c: avoid using `strtok()`
commit826f0e33ab0cbe976af02dd487303e4d1a0b3017
authorTaylor Blau <me@ttaylorr.com>
Mon, 24 Apr 2023 22:20:17 +0000 (24 18:20 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2023 23:01:28 +0000 (24 16:01 -0700)
tree833d76ae6d29628897373357ad94f4019828c457
parent492ba81346cc45322d0c26bc927b01a34becf304
t/helper/test-hashmap.c: avoid using `strtok()`

Avoid using the non-reentrant `strtok()` to separate the parts of each
incoming command. Instead of replacing it with `strtok_r()`, let's
instead use the more friendly pair of `string_list_split_in_place()` and
`string_list_remove_empty_items()`.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-hashmap.c