summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vito.caputo@coreos.com>2016-02-05 03:30:55 -0800
committerVito Caputo <vito.caputo@coreos.com>2016-02-05 07:43:46 -0800
commit90d222c190fc9d4c91f04a1bf0c90c259dcff6d2 (patch)
tree1b4997ff4d89200228d224288d618c30564a02e8 /src
parentc88cc6af706f563bec799c892f1ce84c91626a2a (diff)
journal: add asserts on f->(data|field)_hash_table
Functions dereferencing these members should assert their non-NULL state.
Diffstat (limited to 'src')
-rw-r--r--src/journal/journal-file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index d764bec4c5..9a52a4f959 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -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);