Updater: Fix mUpdaterGetUpdateForChannel

This commit is contained in:
Vicki Pfau 2022-10-27 02:24:39 -07:00
parent 12f7168e9f
commit e3605d291c
1 changed files with 1 additions and 8 deletions

View File

@ -78,14 +78,7 @@ static void _updateMatch(const char* key, const char* value, void* user) {
return;
}
const char* item = &key[dotLoc + 1];
struct Table* out = user;
struct mUpdate* update = HashTableLookup(out, match->channel);
if (!update) {
update = calloc(1, sizeof(*update));
HashTableInsert(out, match->channel, update);
}
_updateUpdate(update, item, value);
_updateUpdate(match->out, item, value);
}
bool mUpdaterInit(struct mUpdaterContext* context, const char* manifest) {