]> git.ipfire.org Git - thirdparty/git.git/commit - quote.c
quote: use isalnum() to check for alphanumeric characters
authorRené Scharfe <l.s.r@web.de>
Sat, 22 Feb 2020 18:51:13 +0000 (19:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2020 17:30:29 +0000 (09:30 -0800)
commit2b3c430bcea5d8c40b218c7e2a71d261822c6a52
tree82d75d9700fa46318f609e0a63eb2d6987cc2411
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783
quote: use isalnum() to check for alphanumeric characters

isalnum(c) is equivalent to isalpha(c) || isdigit(c), so use the
former instead.  The result is shorter, simpler and slightly more
efficient.

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