[Pkg-owncloud-commits] [owncloud-client] 54/332: Fix crash in tests

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Aug 14 21:06:37 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 e355e12385ee68f62b500fdd77de4ca954983796
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Thu Jun 5 15:40:43 2014 +0200

    Fix crash in tests
---
 csync/src/csync_owncloud.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/csync/src/csync_owncloud.c b/csync/src/csync_owncloud.c
index 6655178..31e6576 100644
--- a/csync/src/csync_owncloud.c
+++ b/csync/src/csync_owncloud.c
@@ -786,6 +786,10 @@ char *owncloud_error_string(CSYNC* ctx)
 }
 
 int owncloud_commit(CSYNC* ctx) {
+    if (!ctx->owncloud_context) {
+        return 0;
+    }
+
     clear_propfind_recursive_cache(ctx->owncloud_context);
 
     free_fetchCtx(ctx->owncloud_context->propfind_cache);

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