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

isdigit() may return any non-zero result for success
pull/237/head
LX3JL 3 years ago committed by GitHub
commit 8520b0b42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save

Powered by TurnKey Linux.