chiark / gitweb /
errno is positive
[elogind.git] / src / libsystemd-bus / bus-kernel.c
index e5e3536ad076aefd508c50e76a31e38b3638c28b..b83dfcbc27bca1b37ecde52840b3302437d7b872 100644 (file)
@@ -339,7 +339,7 @@ int bus_kernel_read_message(sd_bus *bus, sd_bus_message **m) {
                 if (errno == EAGAIN)
                         return 0;
 
-                if (errno != -EMSGSIZE)
+                if (errno != EMSGSIZE)
                         return -errno;
 
                 sz *= 2;