Merge branch 'tb/ban-strtok'
Mark strtok() and strtok_r() to be banned. * tb/ban-strtok: banned.h: mark `strtok()` and `strtok_r()` as banned t/helper/test-json-writer.c: avoid using `strtok()` t/helper/test-oidmap.c: avoid using `strtok()` t/helper/test-hashmap.c: avoid using `strtok()` string-list: introduce `string_list_setlen()` string-list: multi-delimiter `string_list_split_in_place()`
This commit is contained in:
2
notes.c
2
notes.c
@ -964,7 +964,7 @@ void string_list_add_refs_from_colon_sep(struct string_list *list,
|
||||
char *globs_copy = xstrdup(globs);
|
||||
int i;
|
||||
|
||||
string_list_split_in_place(&split, globs_copy, ':', -1);
|
||||
string_list_split_in_place(&split, globs_copy, ":", -1);
|
||||
string_list_remove_empty_items(&split, 0);
|
||||
|
||||
for (i = 0; i < split.nr; i++)
|
||||
|
||||
Reference in New Issue
Block a user