diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journal-file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 48fdb6163a..9e89cb9699 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -1010,7 +1010,10 @@ static int journal_file_append_data( if (r < 0) return r; - eq = memchr(data, '=', size); + if (!data) + eq = NULL; + else + eq = memchr(data, '=', size); if (eq && eq > data) { uint64_t fp; Object *fo; |