Fix possible 0-length array in RGBLINK

This commit is contained in:
ISSOtm
2019-12-07 15:23:52 +01:00
parent b62832e94d
commit 32f7860a4e

View File

@@ -353,7 +353,7 @@ static void readRGB6File(FILE *file, char const *fileName)
symbolList->next = symbolLists;
symbolLists = symbolList;
uint32_t nbSymPerSect[nbSections];
uint32_t nbSymPerSect[nbSections ? nbSections : 1];
memset(nbSymPerSect, 0, sizeof(nbSymPerSect));