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 07:43:46 -08:00
parent c88cc6af70
commit 90d222c190
+2
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);