diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index b92ded71a..574349217 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -118,15 +118,9 @@ inline int Rmdir(const char* dir) } inline const char* Getcwd(char* buf, unsigned int len) { - const char* ret = _getcwd(buf, len); - if(!ret) - { - fprintf(stderr, "No current working directory.\n"); - abort(); - } - - return ret; + return _getcwd(buf, len); } + inline int Chdir(const char* dir) { #if defined(__BORLANDC__)