]> err.no Git - systemd/commitdiff
logger: fix return value
authorLennart Poettering <lennart@poettering.net>
Sun, 4 Apr 2010 20:54:25 +0000 (22:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 4 Apr 2010 20:54:25 +0000 (22:54 +0200)
logger.c

index af3293bd7e1812f6b46464e736bd5a8f5deb6b11..8ce9685c62a4494509a5d92a078c2708a1d17f81 100644 (file)
--- a/logger.c
+++ b/logger.c
@@ -564,7 +564,7 @@ int main(int argc, char *argv[]) {
                 if (k <= 0)
                         break;
 
-                if ((r = process_event(&server, &event)) < 0)
+                if ((k = process_event(&server, &event)) < 0)
                         goto fail;
         }
         r = 0;