This commit is contained in:
Thomas Göttgens 2023-01-07 13:28:36 +01:00
parent b283e526bf
commit be2d3f7769

View File

@ -198,7 +198,7 @@ Channel &Channels::getByIndex(ChannelIndex chIndex)
} else {
LOG_ERROR("Invalid channel index %d > %d, malformed packet received?\n", chIndex , channelFile.channels_count);
Channel *ch = (Channel *)malloc(sizeof(Channel));
static Channel *ch = (Channel *)malloc(sizeof(Channel));
memset(ch, 0, sizeof(Channel));
// ch.index -1 means we don't know the channel locally and need to look it up by settings.name
// not sure this is handled right everywhere