ソースを参照

Better check if the path variable is defined.

Klaas Freitag 12 年 前
コミット
f6f513cf45
1 ファイル変更3 行追加1 行削除
  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 );