[Pkg-owncloud-commits] [owncloud-client] 94/211: ownSql: Proper initialization of result value plus assert on it.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 8c7953a47c4812bb6679f331a4ec9ca689904194
Author: Klaas Freitag <freitag at owncloud.com>
Date: Thu Oct 16 11:20:21 2014 +0200
ownSql: Proper initialization of result value plus assert on it.
---
src/mirall/ownsql.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mirall/ownsql.cpp b/src/mirall/ownsql.cpp
index 6a5ca35..25735ad 100644
--- a/src/mirall/ownsql.cpp
+++ b/src/mirall/ownsql.cpp
@@ -159,7 +159,7 @@ bool SqlQuery::next()
void SqlQuery::bindValue(int pos, const QVariant& value)
{
- int res;
+ int res = -1;
if( _stmt ) {
switch (value.type()) {
case QVariant::Int:
@@ -201,6 +201,7 @@ void SqlQuery::bindValue(int pos, const QVariant& value)
break; }
}
}
+ Q_ASSERT( res == SQLITE_OK );
}
QString SqlQuery::stringValue(int index)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list