[Pkg-owncloud-commits] [owncloud-client] 112/332: SyncEngine: silence coverity issue 12885

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:06:47 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 f80816d88f35f36bdebaa51dfb51b80b3b2d334d
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Fri Jun 20 11:36:25 2014 +0200

    SyncEngine: silence coverity issue 12885
    
    It was complaining that we use the context later in the function
    but the csync context should never be null anyway
---
 src/mirall/syncengine.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/mirall/syncengine.cpp b/src/mirall/syncengine.cpp
index 65267d1..7da259c 100644
--- a/src/mirall/syncengine.cpp
+++ b/src/mirall/syncengine.cpp
@@ -432,9 +432,7 @@ void SyncEngine::startSync()
     Q_ASSERT(!_syncRunning);
     _syncRunning = true;
 
-    if( ! _csync_ctx ) {
-        qDebug() << "XXXXXXXXXXXXXXXX FAIL: do not have csync_ctx!";
-    }
+    Q_ASSERT(_csync_ctx);
 
     _syncedItems.clear();
     _needsUpdate = false;

-- 
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