From: Lennart Poettering Date: Sun, 4 Apr 2010 20:54:25 +0000 (+0200) Subject: logger: fix return value X-Git-Tag: 0.git+20100605+dfd8ee-1~267 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ab3c207a978f7db16cb43a2d6c10493ffab3bf5;p=systemd logger: fix return value --- diff --git a/logger.c b/logger.c index af3293bd..8ce9685c 100644 --- 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;