Commit 8468a4406775ddecaebb4f896e74632c76b12411

Patrick Steinhardt 2016-11-25T15:00:20

odb_mempack: mark zero-length array as GIT_FLEX_ARRAY

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/odb_mempack.c b/src/odb_mempack.c
index 594a278..68db3bc 100644
--- a/src/odb_mempack.c
+++ b/src/odb_mempack.c
@@ -24,7 +24,7 @@ struct memobject {
 	git_oid oid;
 	size_t len;
 	git_otype type;
-	char data[];
+	char data[GIT_FLEX_ARRAY];
 };
 
 struct memory_packer_db {