summaryrefslogtreecommitdiff
path: root/external/libcmis/libcmis-0.4.1-empty-path.patch
blob: c48265d21681884cceffd9d1461c6819723925ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git src/libcmis/document.cxx src/libcmis/document.cxx
index 1af0d63..7ecfd24 100644
--- src/libcmis/document.cxx
+++ src/libcmis/document.cxx
@@ -44,6 +44,8 @@ namespace libcmis
                  it != parents.end(); ++it )
             {
                 string path = ( *it )->getPath( );
+                if ( path.empty() )
+                    continue;
                 if ( path[path.size() - 1] != '/' )
                     path += "/";
                 path += getName( );