1
1
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:
Vito Caputo 2016-02-05 03:30:55 -08:00
parent c88cc6af70
commit 90d222c190

View File

@ -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);