Skip to content

Commit

Permalink
Check the return value of query.exec in dbutil.cpp
Browse files Browse the repository at this point in the history
Fixes coverity 703634
(cherry picked from commit c45db22)

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>

Fixes #11567
  • Loading branch information
garybuhrmaster authored and stuartm committed Jun 4, 2013
1 parent 4fdd143 commit 2d61fd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/libs/libmythbase/dbutil.cpp
Expand Up @@ -863,7 +863,10 @@ bool DBUtil::TryLockSchema(MSqlQuery &query, uint timeout_secs)
void DBUtil::UnlockSchema(MSqlQuery &query)
{
query.prepare("SELECT RELEASE_LOCK('schemaLock')");
query.exec();
if (!query.exec())
{
MythDB::DBError("DBUtil UnlockSchema", query);
}
}

/** \fn CheckTimeZoneSupport(void)
Expand Down

0 comments on commit 2d61fd8

Please sign in to comment.