summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-03-10 05:18:26 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-03-10 05:37:01 +0100
commit6c767d1e1a1815fbd4d2b196fb92a0d85cfde5b2 (patch)
treee28f9a9e66b60cebf3e615de8ba9540ea2c29a30 /src/shared/logs-show.c
parenta6dcc7e5924f9c27d3e9c6560a448b02ec28b65f (diff)
logs-show: fix check of loop_read_exact
just a typo fix
Diffstat (limited to 'src/shared/logs-show.c')
-rw-r--r--src/shared/logs-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index d3ee139880..5a3ab3da3e 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -1165,7 +1165,7 @@ static int get_boot_id_for_machine(const char *machine, sd_id128_t *boot_id) {
r = loop_read_exact(fd, buf, 36, false);
safe_close(fd);
- if (k < 0)
+ if (r < 0)
_exit(EXIT_FAILURE);
k = send(pair[1], buf, 36, MSG_NOSIGNAL);