On Mon, Jan 22, 2018 at 1:00 PM, <lars.schneider@xxxxxxxxxxxx> wrote: > diff --git a/convert.c b/convert.c > @@ -1165,8 +1165,9 @@ static struct encoding *git_path_check_encoding(struct attr_check_item *check) > - enc = xcalloc(1, sizeof(struct convert_driver)); > - enc->name = xstrdup_toupper(value); /* aways use upper case names! */ > + enc = xcalloc(1, sizeof(*enc)); > + /* Aways use upper case names to simplify subsequent string comparison. */ s/Aways/Always/ https://public-inbox.org/git/20180121142222.GA10248@xxxxxxxxxxxx/ > + enc->name = xstrdup_toupper(value); > *encoding_tail = enc; > encoding_tail = &(enc->next);