summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/journal/journal-send.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c
index 4c9753cec..7a948a7ed 100644
--- a/src/journal/journal-send.c
+++ b/src/journal/journal-send.c
@@ -97,7 +97,7 @@ _public_ int sd_journal_printv(int priority, const char *format, va_list ap) {
}
static int fill_iovec_sprintf(const char *format, va_list ap, int extra, struct iovec **_iov) {
- int r, n = 0, i, j;
+ int r, n = 0, i = 0, j;
struct iovec *iov = NULL;
int saved_errno;
@@ -113,8 +113,7 @@ static int fill_iovec_sprintf(const char *format, va_list ap, int extra, struct
}
i = extra;
- } else
- i = 0;
+ }
while (format) {
struct iovec *c;