diff --git a/DMRLookup.cpp b/DMRLookup.cpp index 8a7669d..e01ab4f 100644 --- a/DMRLookup.cpp +++ b/DMRLookup.cpp @@ -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; }