mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 21:58:52 +00:00
Fix the allocation of the spect->frames array. [clang scan-build]
This commit is contained in:
@@ -325,7 +325,7 @@ int LoadSpectSeq(SpectSeq *spect, const char *filename)
|
||||
}
|
||||
free(spect->frames);
|
||||
}
|
||||
spect->frames = malloc(sizeof(SpectFrame) * n);
|
||||
spect->frames = calloc(n, sizeof(SpectFrame *));
|
||||
|
||||
spect->numframes = 0;
|
||||
spect->max_x = 3000;
|
||||
|
||||
Reference in New Issue
Block a user