diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2021-08-11 08:46:29 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2021-08-11 08:46:29 +0000 |
commit | a38285027e12ecca3f2ffc288611ec50fd22ca2b (patch) | |
tree | 0716da2b2bc74d3b5ba160a415bf104777b36d6a | |
parent | 3d50fe28e8e8f8b215a36581c6b4c9b199b60eb6 (diff) | |
parent | eeaceb74c4756a725a0d8f4458f38708387f461c (diff) | |
download | gvdb-a38285027e12ecca3f2ffc288611ec50fd22ca2b.tar.gz |
Merge branch 'fix-scan-build-findings' into 'master'
Fix scan-build findings
See merge request GNOME/gvdb!14
-rw-r--r-- | gvdb-builder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gvdb-builder.c b/gvdb-builder.c index 918ee43..dcde43f 100644 --- a/gvdb-builder.c +++ b/gvdb-builder.c @@ -327,6 +327,7 @@ file_builder_allocate_for_hash (FileBuilder *fb, n_items * sizeof (struct gvdb_hash_item); data = file_builder_allocate (fb, 4, size, pointer); + g_assert (data); #define chunk(s) (size -= (s), data += (s), data - (s)) memcpy (chunk (sizeof bloom_hdr), &bloom_hdr, sizeof bloom_hdr); |