Fix ambigous else
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4711 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
4b6438b30a
commit
d747950e75
|
@ -489,6 +489,7 @@ static string GetWorkingDir()
|
|||
|
||||
// Retrieve the current working directory
|
||||
if (!getcwd(curDir, curDirSize))
|
||||
{
|
||||
if (errno == ERANGE)
|
||||
{
|
||||
delete [] curDir;
|
||||
|
@ -504,6 +505,7 @@ static string GetWorkingDir()
|
|||
{
|
||||
curDir[0] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
string cwd(curDir);
|
||||
delete [] curDir;
|
||||
|
|
Loading…
Reference in New Issue