Fix sm_dump_admcache with command group overrides (#1519)

This commit is contained in:
Asher Baker 2021-07-01 22:19:50 +01:00 committed by GitHub
parent 77259acf9e
commit 82c51dbe75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1843,7 +1843,7 @@ bool AdminCache::DumpCache(const char *filename)
fprintf(fp, "\n\t\t\"Overrides\"\n\t\t{\n");
if (pGroup->pCmdGrpTable != NULL)
{
for (OverrideMap::iterator iter = pGroup->pCmdTable->iter(); !iter.empty(); iter.next())
for (OverrideMap::iterator iter = pGroup->pCmdGrpTable->iter(); !iter.empty(); iter.next())
iterator_group_grp_override(fp, iter->key.c_str(), iter->value);
}
if (pGroup->pCmdTable != NULL)