diff options
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r-- | src/journal/journald.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c index 74a58b0462..baad3ab1ad 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -154,13 +154,10 @@ static uint64_t available_space(Server *s) { for (;;) { struct stat st; struct dirent buf, *de; - int k; - k = readdir_r(d, &buf, &de); - if (k != 0) { - r = -k; - goto finish; - } + r = readdir_r(d, &buf, &de); + if (r != 0) + break; if (!de) break; |