fixed HasSuffix

pull/1/head
Tom Early 3 years ago
parent 4890472c50
commit d40bb4f94b

@ -168,8 +168,7 @@ bool CCallsign::IsValid(void) const
// is an letter or space
valid = valid && (IsLetter(m_Module) || IsSpace(m_Module));
// dmrid is not tested, as it can be nullptr
// if station does is not dmr registered
// dmr and nxdn id is not tested, as it can be 0 if station is not registered
// done
return valid;
@ -177,7 +176,7 @@ bool CCallsign::IsValid(void) const
bool CCallsign::HasSuffix(void) const
{
return 0 == memcmp(m_Suffix.c, " ", 4);
return 0x20202020u != m_Suffix.u;
}
////////////////////////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save

Powered by TurnKey Linux.