diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-03-05 10:35:44 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-03-05 10:35:44 -0500 |
commit | d74dc4f2d00644c04ad9dc900ef43050fcadaa8b (patch) | |
tree | 13a9daf92584fdb09eaf56867d1b9b29e5c69261 /src/basic | |
parent | bf1c790c8f9d8a6b4446b3ca5f403dcca5fbcd94 (diff) |
coredump: fix handling of premature-eof data for --backtrace
We'd fail with an assert in journal_importer_process_data(),
because that function requires the caller to handle EOF themselves.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/journal-importer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/journal-importer.c b/src/basic/journal-importer.c index 4c13e46a49..d25fd358e8 100644 --- a/src/basic/journal-importer.c +++ b/src/basic/journal-importer.c @@ -314,7 +314,7 @@ int journal_importer_process_data(JournalImporter *imp) { return r; if (r == 0) { imp->state = IMPORTER_STATE_EOF; - return r; + return 0; } assert(n > 0); assert(line[n-1] == '\n'); |