Updater: Fix mUpdaterGetUpdateForChannel

This commit is contained in:
Vicki Pfau 2022-10-27 02:24:39 -07:00
parent fcf764e3c6
commit 15e8b20537
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) {