summaryrefslogtreecommitdiffstats
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-23 19:23:41 +0100
committerJunio C Hamano <gitster@pobox.com>2015-03-23 19:23:41 +0100
commit437ed4cea135fe544d646850faaa52937c650873 (patch)
treea27d6adbce68a86ad072eab6a6e9344eb7eb9c49 /transport.c
parentMerge branch 'rs/deflate-init-cleanup' into maint (diff)
parentuse isxdigit() for checking if a character is a hexadecimal digit (diff)
downloadgit-437ed4cea135fe544d646850faaa52937c650873.tar.xz
git-437ed4cea135fe544d646850faaa52937c650873.zip
Merge branch 'rs/use-isxdigit' into maint
Code cleanup. * rs/use-isxdigit: use isxdigit() for checking if a character is a hexadecimal digit
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 08bcd3a4eb..862f63f4e1 100644
--- a/transport.c
+++ b/transport.c
@@ -117,7 +117,7 @@ static void insert_packed_refs(const char *packed_refs, struct ref **list)
return;
}
- if (hexval(buffer[0]) > 0xf)
+ if (!isxdigit(buffer[0]))
continue;
len = strlen(buffer);
if (len && buffer[len - 1] == '\n')