Change the return value on zero lookups.

This commit is contained in:
Jonathan Naylor 2016-04-11 12:29:03 +01:00
parent 4329c627db
commit e62ff87811

View file

@ -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;
}