diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-05-02 10:13:35 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-05-02 10:13:35 -0700 |
| commit | d699e27bd487598bc3c5bbf649d866c5274ef8cd (patch) | |
| tree | 8e9f201a52546742933c5e92648788e5ca5c8795 /notes.c | |
| parent | Merge branch 'jk/blame-fake-commit-label' (diff) | |
| parent | banned.h: mark `strtok()` and `strtok_r()` as banned (diff) | |
| download | git-d699e27bd487598bc3c5bbf649d866c5274ef8cd.tar.gz git-d699e27bd487598bc3c5bbf649d866c5274ef8cd.zip | |
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()`
Diffstat (limited to 'notes.c')
| -rw-r--r-- | notes.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) |
