mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-06 12:58:22 +03:00
journal: add asserts on f->(data|field)_hash_table
Functions dereferencing these members should assert their non-NULL state.
This commit is contained in:
parent
c88cc6af70
commit
90d222c190
@ -745,6 +745,7 @@ static int journal_file_link_field(
|
||||
|
||||
assert(f);
|
||||
assert(f->header);
|
||||
assert(f->field_hash_table);
|
||||
assert(o);
|
||||
assert(offset > 0);
|
||||
|
||||
@ -789,6 +790,7 @@ static int journal_file_link_data(
|
||||
|
||||
assert(f);
|
||||
assert(f->header);
|
||||
assert(f->data_hash_table);
|
||||
assert(o);
|
||||
assert(offset > 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user