Fix ambigous else

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4711 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2008-04-20 23:56:20 +00:00
parent 4b6438b30a
commit d747950e75
1 changed files with 2 additions and 0 deletions

View File

@ -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;