[Pkg-owncloud-commits] [ocsync] 06/29: Better check if the path variable is defined.

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Dec 13 14:26:33 UTC 2013


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository ocsync.

commit f6f513cf455d5acdf7062d73317032aaceef710c
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Mon Dec 9 14:08:28 2013 +0100

    Better check if the path variable is defined.
---
 src/csync_owncloud_util.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/csync_owncloud_util.c b/src/csync_owncloud_util.c
index 4d99055..39a6f77 100644
--- a/src/csync_owncloud_util.c
+++ b/src/csync_owncloud_util.c
@@ -180,7 +180,9 @@ char *_cleanPath( const char* uri ) {
         DEBUG_WEBDAV("Unable to cleanPath %s", uri ? uri: "<zero>" );
         re = NULL;
     } else {
-        re = ne_path_escape( path );
+	if(path) {
+	    re = ne_path_escape( path );
+	}
     }
 
     SAFE_FREE( path );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/ocsync.git



More information about the Pkg-owncloud-commits mailing list