Junio C Hamano writes:
> Antoine Pelisse writes:
>
>>> +static struct string_list_item *lookup_prefix(struct string_list *map,
>>> + const char *string, size_t
>>> len)
>>> +{
>>> + int i = string_list_find_insert_index(map, string, 1);
>>> +
Antoine Pelisse writes:
>> +static struct string_list_item *lookup_prefix(struct string_list *map,
>> + const char *string, size_t len)
>> +{
>> + int i = string_list_find_insert_index(map, string, 1);
>> + if (i < 0) {
>> + /*
> +static struct string_list_item *lookup_prefix(struct string_list *map,
> + const char *string, size_t len)
> +{
> + int i = string_list_find_insert_index(map, string, 1);
> + if (i < 0) {
> + /* exact match */
> +
In map_user(), we have email pointer that points at the beginning of
an e-mail address, but the buffer is not terminated with a NUL after
the e-mail address. It typically has ">" after the address, and it
could have even more if it comes from author/committer line in a
commit object. Or it may no
4 matches
Mail list logo