Fix the allocation of the spect->frames array. [clang scan-build]

This commit is contained in:
Reece H. Dunn
2016-01-03 13:03:05 +00:00
parent 1d14c2a2f1
commit ae0d188c73
+1 -1
View File
@@ -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;