fix(Core/Tools): fix GCC warnings in extractors (#3430)

This commit is contained in:
Francesco Borzì
2020-09-05 00:30:13 +02:00
committed by GitHub
parent 6134e1d399
commit 9d381fa0f1
2 changed files with 25 additions and 6 deletions

View File

@@ -99,8 +99,12 @@ void CreateDir( const std::string& Path )
{
if(chdir(Path.c_str()) == 0)
{
chdir("../");
return;
int ret = chdir("../");
if (ret < 0)
{
printf("Error while executing chdir");
}
return;
}
int ret;