]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal: add asserts on f->(data|field)_hash_table
authorVito Caputo <vito.caputo@coreos.com>
Fri, 5 Feb 2016 11:30:55 +0000 (03:30 -0800)
committerVito Caputo <vito.caputo@coreos.com>
Fri, 5 Feb 2016 15:43:46 +0000 (07:43 -0800)
Functions dereferencing these members should assert their non-NULL state.

src/journal/journal-file.c

index d764bec4c52caa7dbe93b99338f5fb4ba07d7677..9a52a4f95941edcb01ca2a7224540aa81b3aa611 100644 (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);