1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00

journal: coding style fix

This is originally pointed out by @cpsw.
This commit is contained in:
Yu Watanabe 2018-01-15 23:53:05 +09:00
parent 9c3b99feb8
commit bb6b922f9f

View File

@ -464,13 +464,14 @@ static int do_rotate(
return -EINVAL;
r = journal_file_rotate(f, s->compress, seal, s->deferred_closes);
if (r < 0)
if (r < 0) {
if (*f)
log_error_errno(r, "Failed to rotate %s: %m", (*f)->path);
return log_error_errno(r, "Failed to rotate %s: %m", (*f)->path);
else
log_error_errno(r, "Failed to create new %s journal: %m", name);
else
server_add_acls(*f, uid);
return log_error_errno(r, "Failed to create new %s journal: %m", name);
}
server_add_acls(*f, uid);
return r;
}