]> git.ipfire.org Git - thirdparty/git.git/commit - convert.c
convert: fix handling of dashless UTF prefix in validate_encoding()
authorRené Scharfe <l.s.r@web.de>
Fri, 4 Oct 2019 19:25:50 +0000 (21:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 Oct 2019 00:43:01 +0000 (09:43 +0900)
commitb181676ce9e8c89a39737f098d9b9c4f774596cf
tree5612964e16a91ef7526722af951065970f7ad8f7
parentaeb582a98374c094361cba1bd756dc6307432c42
convert: fix handling of dashless UTF prefix in validate_encoding()

Strip "UTF" and an optional dash from the start of 'upper' without
passing a NULL pointer to skip_prefix() in the second call, as it cannot
handle that.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c