Browse Source

Better check if the path variable is defined.

Klaas Freitag 12 years ago
parent
commit
f6f513cf45
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/csync_owncloud_util.c

+ 3 - 1
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 );