0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00

fix: fix condition for howdy_error

This commit is contained in:
MusiKid 2022-01-21 11:32:57 +01:00 committed by musikid
parent d77dd94ec0
commit 67fc6f4709
No known key found for this signature in database
GPG key ID: 7567D43648C6E2F4

View file

@ -52,7 +52,7 @@ using namespace boost::locale;
*/ */
int howdy_error(int status, function<int(int, const char *)> conv_function) { int howdy_error(int status, function<int(int, const char *)> conv_function) {
// If the process has exited // If the process has exited
if (!WIFEXITED(status)) { if (WIFEXITED(status)) {
// Get the status code returned // Get the status code returned
status = WEXITSTATUS(status); status = WEXITSTATUS(status);