Skip to content

Commit

Permalink
cppcheck: Fix "known condition" warning in preview generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Oct 2, 2020
1 parent e5be0ea commit 1550068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/previewgeneratorqueue.cpp
Expand Up @@ -674,7 +674,7 @@ void PreviewGeneratorQueue::SetPreviewGenerator(
PreviewGenState &state = m_previewMap[key];
if (state.m_gen)
{
if (g && state.m_gen != g)
if (state.m_gen != g)
{
if (!g->GetToken().isEmpty())
state.m_tokens.insert(g->GetToken());
Expand Down

0 comments on commit 1550068

Please sign in to comment.