Skip to content

Commit

Permalink
Silence cppcheck warning about possible null pointer dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Jul 26, 2011
1 parent 20fa33a commit ee58b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/progfind.cpp
Expand Up @@ -138,7 +138,7 @@ ProgFinder::~ProgFinder()

void ProgFinder::alphabetListItemSelected(MythUIButtonListItem *item)
{
if (item && m_currentLetter == item->GetText())
if (!item || (m_currentLetter == item->GetText()))
return;

m_currentLetter = item->GetText();
Expand Down

0 comments on commit ee58b3e

Please sign in to comment.