changeset 619:da9c2e128cae

Executable: fix for macOS
author David Demelier <markand@malikania.fr>
date Wed, 11 Oct 2017 10:12:28 +0200
parents 1ae8106369e5
children e24fc739ec74
files modules/executable/executable.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/executable/executable.cpp	Tue Sep 26 09:50:02 2017 +0200
+++ b/modules/executable/executable.cpp	Wed Oct 11 10:12:28 2017 +0200
@@ -76,7 +76,7 @@
 #elif defined(__APPLE__)
     char path[PROC_PIDPATHINFO_MAXSIZE + 1] = {0};
 
-    if ((proc_pidpath(getpid(), path, sizeof (path) - 1) == 0)
+    if ((proc_pidpath(getpid(), path, sizeof (path) - 1)) == 0)
         throw std::runtime_error(std::strerror(errno));
 
     result = path;