Merge pull request #230 from anonymouspage/isdigit-does-not-return-one

isdigit() may return any non-zero result for success
This commit is contained in:
LX3JL 2023-03-01 18:35:32 +01:00 committed by GitHub
commit 8520b0b42a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ bool CDmridDir::IsValidDmrid(const char *sz)
ok = true;
for ( size_t i = 0; (i < n) && ok; i++ )
{
ok &= ::isdigit(sz[i]);
ok = ::isdigit(sz[i]);
}
}
return ok;