summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-11-20 00:19:27 +0100
committerLennart Poettering <lennart@poettering.net>2012-11-20 00:21:44 +0100
commit7d73c1343be02a59b17de0cd34375deeb815d89c (patch)
treec9111990f80a39ae4135e1dbed74e832e5db0173 /src/journal
parent10f70492aea211981e4bdbe58dd7ea110e05cd16 (diff)
journald: fix bad memory access
https://bugzilla.redhat.com/show_bug.cgi?id=875653
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 0ff2866c11..3eaf0d3ee2 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -336,7 +336,7 @@ void server_rotate(Server *s) {
HASHMAP_FOREACH_KEY(f, k, s->user_journals, i) {
r = journal_file_rotate(&f, s->compress, s->seal);
if (r < 0)
- if (f->path)
+ if (f)
log_error("Failed to rotate %s: %s", f->path, strerror(-r));
else
log_error("Failed to create user journal: %s", strerror(-r));