Skip to content

Commit

Permalink
Simplify the end of the extract_one_del function.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Mar 26, 2019
1 parent c067960 commit 66ccc93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mythtv/programs/mythfrontend/playbackbox.cpp
Expand Up @@ -358,10 +358,11 @@ static bool extract_one_del(QStringList &list, uint &recordingID)
list.pop_front();
list.pop_front();

if (!recordingID)
if (recordingID == 0U) {
LOG(VB_GENERAL, LOG_ERR, LOC + "extract_one_del() invalid entry");

return recordingID;
return false;
}
return true;
}

void * PlaybackBox::RunPlaybackBox(void * player, bool showTV)
Expand Down

0 comments on commit 66ccc93

Please sign in to comment.