Skip to content

Commit

Permalink
Patch for unchecked return code for database update
Browse files Browse the repository at this point in the history
Static analysis (coverity) detected an unchecked
return code from a database update.  Check the
return code in a manor equivalent to others in
this routine.

Fixes coverity 700256
  • Loading branch information
garybuhrmaster authored and wagnerrp committed Jun 10, 2013
1 parent e554ad8 commit 8d4aaad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/libs/libmythtv/dbcheck.cpp
Expand Up @@ -1033,7 +1033,10 @@ NULL
query.prepare("DELETE FROM keybindings WHERE "
"action IN ('PAGEUP','PAGEDOWN') AND "
"context = 'TV FRONTEND'");
query.exec();
if (!query.exec())
{
MythDB::DBError("Unable to update keybindings", query);
}

query.prepare("SELECT data FROM settings "
" WHERE value = 'EPGEnableJumpToChannel'");
Expand Down

0 comments on commit 8d4aaad

Please sign in to comment.