Browse files

Patch for unchecked return code for database update

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 8d4aaadcd11c80e930b481ff9eba43a2b3277b28
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/libs/libmythtv/dbcheck.cpp
@@ -1033,7 +1033,10 @@ NULL
query.prepare("DELETE FROM keybindings WHERE "
"action IN ('PAGEUP','PAGEDOWN') AND "
"context = 'TV FRONTEND'");
if (!query.exec())
MythDB::DBError("Unable to update keybindings", query);
query.prepare("SELECT data FROM settings "
" WHERE value = 'EPGEnableJumpToChannel'");

0 comments on commit 8d4aaad

Please sign in to comment.