Skip to content

Commit

Permalink
Explicitly set waveBankNames to NULL when not available
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Aug 10, 2021
1 parent e14f29d commit 0c352eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FACT_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -3313,6 +3313,10 @@ uint32_t FACT_INTERNAL_ParseWaveBank(
wb->waveBankNames = (char*) pEngine->pMalloc(64 * wbinfo.dwEntryCount);
READ(wb->waveBankNames, 64 * wbinfo.dwEntryCount);
}
else
{
wb->waveBankNames = NULL;
}

/* Add to the Engine WaveBank list */
LinkedList_AddEntry(
Expand Down

0 comments on commit 0c352eb

Please sign in to comment.