--- MEGAsync-4.9.5.0_Linux/src/MEGASync/google_breakpad/client/solaris/handler/solaris_lwp.cc.orig +++ MEGAsync-4.9.5.0_Linux/src/MEGASync/google_breakpad/client/solaris/handler/solaris_lwp.cc @@ -39,11 +39,13 @@ #include #include #include +#include #include #include #include #include +#include #include #include "client/solaris/handler/solaris_lwp.h" @@ -258,9 +260,9 @@ * The /proc/pid/lstatus file has the array of lwpstatus_t's and the * /proc/pid/lpsinfo file has the array of lwpsinfo_t's. */ - if (read_lfile(pid, "lstatus", Lhp) == NULL) + if (!read_lfile(pid, "lstatus", Lhp)) return -1; - if (read_lfile(pid, "lpsinfo", Lphp) == NULL) { + if (!read_lfile(pid, "lpsinfo", Lphp)) { return -1; }