[Pkg-owncloud-commits] [owncloud-client] 305/470: SyncJournalDb: Handle empty filename and avoid a bogus db query.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu May 12 16:25:17 UTC 2016
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 aaf43bd0d34f2ccfa9d92fcd558f636627d57a19
Author: Klaas Freitag <freitag at owncloud.com>
Date: Mon Apr 11 17:36:15 2016 +0200
SyncJournalDb: Handle empty filename and avoid a bogus db query.
---
src/libsync/syncjournaldb.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libsync/syncjournaldb.cpp b/src/libsync/syncjournaldb.cpp
index 215bd00..00f2f26 100644
--- a/src/libsync/syncjournaldb.cpp
+++ b/src/libsync/syncjournaldb.cpp
@@ -777,7 +777,7 @@ SyncJournalFileRecord SyncJournalDb::getFileRecord(const QString& filename)
qlonglong phash = getPHash( filename );
SyncJournalFileRecord rec;
- if( checkConnect() ) {
+ if( !filename.isEmpty() && checkConnect() ) {
_getFileRecordQuery->reset_and_clear_bindings();
_getFileRecordQuery->bindValue(1, QString::number(phash));
--
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