Commit 18db8f6f authored by Rusty Russell's avatar Rusty Russell

tap: fix isdigit and isspace usage.

isspace() and isdigit() want an unsigned value.
parent b7dedf43
......@@ -115,7 +115,8 @@ _gen_result(int ok, const char *func, const char *file, unsigned int line,
if(local_test_name) {
name_is_digits = 1;
for(c = local_test_name; *c != '\0'; c++) {
if(!isdigit(*c) && !isspace(*c)) {
if(!isdigit((unsigned char)*c)
&& !isspace((unsigned char)*c)) {
name_is_digits = 0;
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment