summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-20 13:11:52 -0700
committerJunio C Hamano <gitster@pobox.com>2015-03-20 13:11:52 -0700
commitdaea6fca3564e880dfe29bfab65fd5b608e9491d (patch)
tree59dc5b5f4469c68af6c81a8129498a1cfc215401 /transport.c
parent4c24385e80b333695470d3f4fdc28918a2d3108a (diff)
parent6f75d45b2412c646b74300f360361b319689e554 (diff)
downloadgit-daea6fca3564e880dfe29bfab65fd5b608e9491d.tar.gz
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')