Files
loongoffice/external/libcmis/libcmis-0.4.1-empty-path.patch
Khaled Hosny a522158332 fdo#70393: move libcmis to a subdir of external
Change-Id: I602ae9b173e42d668cd9383fa0d2517576db12bf
Reviewed-on: https://gerrit.libreoffice.org/6326
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-10-19 07:29:02 +00:00

14 lines
490 B
Diff

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( );