diff --git a/cbt.h b/cbt.h index c1f5ff1..75c6ed6 100644 --- a/cbt.h +++ b/cbt.h @@ -239,7 +239,7 @@ void cbt__init(int argc, char **argv, const char *source_file) { cbt_log(CBT_LOG_INFO, "Found C Compiler: %s", cbt_cc); #ifdef __APPLE__ - CBT_FAIL(proc_pidpath(getpid(), cbt_location, PATH_MAX) != 0); + CBT_FAIL(proc_pidpath(getpid(), cbt_location, PATH_MAX) == -1); #else CBT_FAIL(readlink("/proc/self/exe", cbt_location, PATH_MAX) == -1); #endif