mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
sd-journal: make journal_file_copy_entry() return earlier
This commit is contained in:
parent
bf9b7728e6
commit
85e38da2ec
|
@ -4188,6 +4188,8 @@ int journal_file_copy_entry(
|
|||
boot_id = o->entry.boot_id;
|
||||
|
||||
n = journal_file_entry_n_items(from, o);
|
||||
if (n == 0)
|
||||
return 0;
|
||||
|
||||
if (n < ALLOCA_MAX / sizeof(EntryItem) / 2)
|
||||
items = newa(EntryItem, n);
|
||||
|
|
Loading…
Reference in a new issue