This website works better with JavaScript.
Home
Explore
Sign In
mahta.fetrat
/
HomoFast-eSpeak-Persian
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix the allocation of the spect->frames array. [clang scan-build]
master
Reece H. Dunn
9 years ago
parent
1d14c2a2f1
commit
ae0d188c73
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
src/libespeak-ng/spect.c
+ 1
- 1
src/libespeak-ng/spect.c
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;
Write
Preview
Loading…
Cancel
Save