]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
SyncJournalDb: Only close the db if the return code is not SQLITE_DONE
authorKlaas Freitag <freitag@owncloud.com>
Mon, 11 Apr 2016 15:38:16 +0000 (17:38 +0200)
committerKlaas Freitag <freitag@owncloud.com>
Mon, 11 Apr 2016 15:38:16 +0000 (17:38 +0200)
commit868edb1f0d2be5b855633ef0916f489451b27b35
tree8bd1e8e61051ddaa419b025fd02a89cae5d7c975
parentaaf43bd0d34f2ccfa9d92fcd558f636627d57a19
SyncJournalDb: Only close the db if the return code is not SQLITE_DONE

SQLITE_DONE is the indicator for not more query results, which is a legal
thing and not an error condition.

Also, check _getFileRecordQuery for null pointer, as close() wipes it.
src/libsync/syncjournaldb.cpp