Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
use isxdigit() for checking if a character is a hexadecimal digit
[gitweb.git]
/
transport.c
diff --git
a/transport.c
b/transport.c
index 325f03e1eef97df296bb1cc9f7d2d33c218dde26..7ac0df21ead112b1e2b98117c13a5516d16a4bbd 100644
(file)
--- 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')