From 62c5bdbb8ffec192dab4f16e44f70bae2cfcc409 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 23 Aug 2014 23:54:27 -0300 Subject: [PATCH] Fix base::get_app_path() for Mac OS X --- src/base/fs_unix.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/base/fs_unix.h b/src/base/fs_unix.h index 35fca798f..bd1d357c6 100644 --- a/src/base/fs_unix.h +++ b/src/base/fs_unix.h @@ -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()