Fix base::get_app_path() for Mac OS X

This commit is contained in:
David Capello 2014-08-23 23:54:27 -03:00
parent 622e966a8c
commit 62c5bdbb8f

View File

@ -95,12 +95,11 @@ std::string get_app_path()
#else
if (readlink("/proc/self/exe", &path[0], path.size()) > 0)
return std::string(&path[0]);
readlink("/proc/self/exe", &path[0], path.size());
#endif
return std::string();
return std::string(&path[0]);
}
std::string get_temp_path()