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
diff.c
2
diff.c
@@ -139,7 +139,7 @@ static int parse_dirstat_params(struct diff_options *options, const char *params
|
||||
int i;
|
||||
|
||||
if (*params_copy)
|
||||
string_list_split_in_place(¶ms, params_copy, ',', -1);
|
||||
string_list_split_in_place(¶ms, params_copy, ",", -1);
|
||||
for (i = 0; i < params.nr; i++) {
|
||||
const char *p = params.items[i].string;
|
||||
if (!strcmp(p, "changes")) {
|
||||
|
||||
Reference in New Issue
Block a user