X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fprocess_runs.c;h=da2dba150139f931560e0c8615abd020fc5b47fb;hb=302966374bd7d9ca5b97171cedd3613ae10360c8;hp=b5e8f110c5ac2cd77e9be07ceea7ce2ecbe39c42;hpb=d74e904bf4bdd7f1d767a8db09987b90de809579;p=i3%2Fi3status diff --git a/src/process_runs.c b/src/process_runs.c index b5e8f11..da2dba1 100644 --- a/src/process_runs.c +++ b/src/process_runs.c @@ -24,7 +24,7 @@ bool process_runs(const char *path) { static glob_t globbuf; memset(pidbuf, 0, sizeof(pidbuf)); - if (glob(path, GLOB_NOCHECK | GLOB_TILDE, NULL, &globbuf) < 0) + if (glob(path, GLOB_NOCHECK | GLOB_TILDE, NULL, &globbuf) != 0) die("glob() failed\n"); if (globbuf.gl_pathc == 0) { /* No glob matches, the specified path does not contain a wildcard. */