summaryrefslogtreecommitdiff
path: root/sys-cluster/glusterfs/files/glusterfs-11.0-fix-crash.patch
blob: 6a4a1ec517ab0c22c02f0b6118450303642ebb3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# https://bugs.gentoo.org/911588
# https://github.com/gluster/glusterfs/issues/4192
# https://github.com/gluster/glusterfs/pull/4196
diff --git a/libglusterfs/src/glusterfs/mem-pool.h b/libglusterfs/src/glusterfs/mem-pool.h
index 46f764f56e5..416b7ddf1e3 100644
--- a/libglusterfs/src/glusterfs/mem-pool.h
+++ b/libglusterfs/src/glusterfs/mem-pool.h
@@ -297,7 +297,7 @@ typedef struct per_thread_pool_list {
      * in the implementation code so we just make it a single-element array
      * here.
      */
-    per_thread_pool_t pools[];
+    per_thread_pool_t pools[1];
 } per_thread_pool_list_t;
 
 /* actual pool structure, shared between different mem_pools */