diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c index 471ad879a4..128866e17c 100644 --- a/src/shared/journal-importer.c +++ b/src/shared/journal-importer.c @@ -292,7 +292,7 @@ int journal_importer_process_data(JournalImporter *imp) { switch (imp->state) { case IMPORTER_STATE_LINE: { - char *line, *sep; + char *line = NULL; /* avoid false maybe-uninitialized warning */ size_t n = 0; assert(imp->data_size == 0); @@ -317,7 +317,7 @@ int journal_importer_process_data(JournalImporter *imp) { COREDUMP\n LLLLLLLL0011223344...\n */ - sep = memchr(line, '=', n); + char *sep = memchr(line, '=', n); if (sep) { /* chomp newline */ n--;