mirror of
https://github.com/LX3JL/xlxd.git
synced 2026-02-09 09:04:26 +01:00
isdigit() returns zero or "non-zero" value, not zero or "one".
This causes building xlxd with gcc makes no problem, but with clang makes "Read 0 DMR id" message at boot.
This commit is contained in:
parent
6d85e1382b
commit
1958afca33
|
|
@ -152,7 +152,10 @@ bool CDmridDir::IsValidDmrid(const char *sz)
|
|||
ok = true;
|
||||
for ( size_t i = 0; (i < n) && ok; i++ )
|
||||
{
|
||||
ok &= ::isdigit(sz[i]);
|
||||
if ( !::isdigit(sz[i]) )
|
||||
{
|
||||
ok = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return ok;
|
||||
|
|
|
|||
Loading…
Reference in a new issue