summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec
diff options
context:
space:
mode:
authorSheetal Pamecha <sheetal.pamecha08@gmail.com>2018-09-24 16:37:51 +0530
committerAmar Tumballi <amarts@redhat.com>2018-09-26 04:12:16 +0000
commit064b24900e1f5e3ba3087f7c6a0249613ebed61f (patch)
tree97b3255af48d8ea031931876e08b7ed1e3bc8640 /xlators/cluster/ec
parent5ad31b5b17fa220c9b26b6df730e127c76448ac5 (diff)
cluster/ec: variable-length array (VLA) declaration clang fix
Problem: variable-length array size becomes zero Modified array size to size+1 while declaring Updates: bz#1622665 Change-Id: I98ee8447c87f37c36c49f50058292e8c1757a1f9 Signed-off-by: Sheetal Pamecha <sheetal.pamecha08@gmail.com>
Diffstat (limited to 'xlators/cluster/ec')
-rw-r--r--xlators/cluster/ec/src/ec-code.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-code.c b/xlators/cluster/ec/src/ec-code.c
index 70878d794ca..b3338248569 100644
--- a/xlators/cluster/ec/src/ec-code.c
+++ b/xlators/cluster/ec/src/ec-code.c
@@ -944,7 +944,7 @@ ec_code_cpu_check(uint32_t idx, char *list, uint32_t count)
{
ec_code_gen_t *gen;
char **ptr;
- char *table[count];
+ char *table[count + 1];
uint32_t i;
for (i = 0; i < count; i++) {