[gvdb/fix-scan-build-findings] Fix scan-build findings
- From: Jan-Michael Brummer <jbrummer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvdb/fix-scan-build-findings] Fix scan-build findings
- Date: Fri, 8 Jan 2021 20:10:26 +0000 (UTC)
commit eeaceb74c4756a725a0d8f4458f38708387f461c
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Fri Jan 8 20:44:07 2021 +0100
Fix scan-build findings
gvdb-builder.c | 1 +
1 file changed, 1 insertion(+)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]