Explorar o código

Fix logic bug with calling uname(2)

Spotted by clang34
Bryan Drewery %!s(int64=12) %!d(string=hai) anos
pai
achega
024719aa36
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/chanprog.c

+ 1 - 1
src/chanprog.c

@@ -308,7 +308,7 @@ void tell_verbose_status(int idx)
   int i;
   struct utsname un;
 
-  if (!uname(&un) < 0) {
+  if (uname(&un) < 0) {
     vers_t = " ";
     uni_t = "*unknown*";
   } else {