mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-04 19:25:43 +00:00
Fix possible 0-length array in RGBLINK
This commit is contained in:
1 parent
b62832e94d
commit
32f7860a4e
1 file changed
+1
-1
+1
-1
@@ -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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user