Merge pull request #39 from lioncash/conjunc

extkeys: Correct logical ANDs in get_kv()
This commit is contained in:
SciresM 2018-08-11 18:53:32 -07:00 committed by GitHub
commit 373bdd04e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,10 +94,11 @@ static int get_kv(FILE *f, char **key, char **value) {
} }
if (*p != '_' && if (*p != '_' &&
(*p < '0' && *p > '9') && (*p < '0' || *p > '9') &&
(*p < 'a' && *p > 'z')) (*p < 'a' || *p > 'z')) {
return -1; return -1;
} }
}
/* Bail if the final ++p put us at the end of string */ /* Bail if the final ++p put us at the end of string */
if (*p == '\0') if (*p == '\0')