mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix possible 0-length array in RGBLINK
This commit is contained in:
@@ -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