aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/UnrarXLib/file.cpp3
-rw-r--r--lib/UnrarXLib/ulinks.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/UnrarXLib/file.cpp b/lib/UnrarXLib/file.cpp
index e2d1074de6..d4289e26f5 100644
--- a/lib/UnrarXLib/file.cpp
+++ b/lib/UnrarXLib/file.cpp
@@ -165,8 +165,7 @@ bool File::Create(const char *Name,const wchar *NameW)
#else
hFile=fopen(Name,CREATEBINARY);
#endif*/
- CStdString strPath;
- URIUtils::GetDirectory(Name,strPath);
+ CStdString strPath = URIUtils::GetDirectory(Name);
CUtil::CreateDirectoryEx(strPath);
m_File.OpenForWrite(Name,true);
NewFile=true;
diff --git a/lib/UnrarXLib/ulinks.cpp b/lib/UnrarXLib/ulinks.cpp
index 49d322226c..247171f152 100644
--- a/lib/UnrarXLib/ulinks.cpp
+++ b/lib/UnrarXLib/ulinks.cpp
@@ -14,8 +14,7 @@ int ExtractLink(ComprDataIO &DataIO,Archive &Arc,char *DestName,uint &LinkCRC,bo
FileName[DataSize]=0;
if (Create)
{
- CStdString strPath;
- URIUtils::GetDirectory(DestName,strPath);
+ CStdString strPath = URIUtils::GetDirectory(DestName);
CUtil::CreateDirectoryEx(strPath);
if (symlink(FileName,DestName)==-1)
{