fix ptr bug.

This commit is contained in:
Kelvin Sherlock 2017-10-02 15:11:43 -04:00
parent e21aac4022
commit 60b49a1ff4
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ namespace OS {
char *cp;
cp = getcwd(buffer, sizeof(buffer));
if (cp < 0) return 0;
if (cp == 0) return 0;
std::string path(cp);