Initialize container to nullptr

This commit is contained in:
Jonas Kvinge 2021-07-12 05:50:06 +02:00
parent 600450082a
commit 1d4c736cfa
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ void RadioModel::Reset() {
void RadioModel::AddChannels(const RadioChannelList &channels) {
for (const RadioChannel &channel : channels) {
RadioItem *container = root_;
RadioItem *container = nullptr;
if (container_nodes_.contains(channel.source)) {
container = container_nodes_[channel.source];
}