Skip to content

Commit

Permalink
Fix a cut&paste error identified by Coverity 746770.
Browse files Browse the repository at this point in the history
This fixes potential undefined behavior in the channel editor
partial-match code.
  • Loading branch information
stichnot committed Jun 16, 2013
1 parent 1d85b82 commit a1d6641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/tv_play.cpp
Expand Up @@ -10422,7 +10422,7 @@ QString TV::GetDataDirect(QString key, QString value, QString field,
if (best_match != (*it_key).end())
{
InfoMap::const_iterator it_field = (*best_match).find(field);
if (it_field != (*it_val).end())
if (it_field != (*best_match).end())
{
QString ret = *it_field;
ret.detach();
Expand Down

0 comments on commit a1d6641

Please sign in to comment.