Check the return value of query.next().

From: Erik Hovland <erik@hovland.org>

This may be non-issue since the size of the query was already
checked. But it seems that query.next() is often checked. This
one in GetSettingOnHost() wasn't. So I added an if to do that.
---

 mythtv/libs/libmythdb/mythdb.cpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


diff --git a/mythtv/libs/libmythdb/mythdb.cpp b/mythtv/libs/libmythdb/mythdb.cpp
index 61c9928..a0d789a 100644
--- a/mythtv/libs/libmythdb/mythdb.cpp
+++ b/mythtv/libs/libmythdb/mythdb.cpp
@@ -413,9 +413,11 @@ QString MythDB::GetSettingOnHost(const QString &key, const QString &host,
 
             if (query.exec() && query.isActive() && query.size() > 0)
             {
-                query.next();
-                value = query.value(0).toString();
-                found = true;
+                if (query.next())
+                {
+                    value = query.value(0).toString();
+                    found = true;
+                }
             }
         }
         else
