summaryrefslogtreecommitdiffstats
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-20 21:11:52 +0100
committerJunio C Hamano <gitster@pobox.com>2015-03-20 21:11:52 +0100
commitdaea6fca3564e880dfe29bfab65fd5b608e9491d (patch)
tree59dc5b5f4469c68af6c81a8129498a1cfc215401 /transport.c
parentMerge branch 'mg/verify-commit' (diff)
parentuse isxdigit() for checking if a character is a hexadecimal digit (diff)
downloadgit-daea6fca3564e880dfe29bfab65fd5b608e9491d.tar.xz
git-daea6fca3564e880dfe29bfab65fd5b608e9491d.zip
Merge branch 'rs/use-isxdigit'
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 0694a7cf3e..00f39d9f5b 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')