mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Change the return value on zero lookups.
This commit is contained in:
@@ -57,7 +57,13 @@ bool CDMRLookup::read()
|
||||
}
|
||||
}
|
||||
|
||||
LogInfo("Loaded %u DMR Ids to the callsign lookup table", m_table.size());
|
||||
::fclose(fp);
|
||||
|
||||
size_t size = m_table.size();
|
||||
if (size == 0U)
|
||||
return false;
|
||||
|
||||
LogInfo("Loaded %u DMR Ids to the callsign lookup table", size);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user