]> git.sur5r.net Git - i3/i3status/blobdiff - src/print_cpu_temperature.c
Merge pull request #290 from duskCoder/changes
[i3/i3status] / src / print_cpu_temperature.c
index 431664ed9d0f2ccbe47535b0945ef70f3a76619e..feae3ec8a8cb388fc3e8717554d4f851303d65ef 100644 (file)
@@ -223,7 +223,7 @@ void print_cpu_temperature_info(yajl_gen json_gen, char *buffer, int zone, const
         asprintf(&thermal_zone, THERMAL_ZONE, zone);
     else {
         static glob_t globbuf;
-        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. */