summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-16 17:39:00 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-16 17:39:00 +0200
commit1137e6c73ba4456f6bb054a2a45f80972f568586 (patch)
treef34fcb9070fa58af228b94dbcf7a6116e02e82f2 /src
parent2a7273ef923e23e8444d556ec8de420f39b1311f (diff)
journal: fix variable initialization
Diffstat (limited to 'src')
-rw-r--r--src/journal/journal-verify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/journal-verify.c b/src/journal/journal-verify.c
index ad96cca477..55ca52a641 100644
--- a/src/journal/journal-verify.c
+++ b/src/journal/journal-verify.c
@@ -610,6 +610,7 @@ int journal_file_verify(JournalFile *f, const char *key) {
data_fd = mkostemp(data_path, O_CLOEXEC);
if (data_fd < 0) {
log_error("Failed to create data file: %m");
+ r = -errno;
goto fail;
}
unlink(data_path);
@@ -617,6 +618,7 @@ int journal_file_verify(JournalFile *f, const char *key) {
entry_fd = mkostemp(entry_path, O_CLOEXEC);
if (entry_fd < 0) {
log_error("Failed to create entry file: %m");
+ r = -errno;
goto fail;
}
unlink(entry_path);
@@ -624,6 +626,7 @@ int journal_file_verify(JournalFile *f, const char *key) {
entry_array_fd = mkostemp(entry_array_path, O_CLOEXEC);
if (entry_array_fd < 0) {
log_error("Failed to create entry array file: %m");
+ r = -errno;
goto fail;
}
unlink(entry_array_path);