Browse Source

Fix usage of calloc in espeak_ng_CompileIntonation. [clang scan-build]

master
Reece H. Dunn 9 years ago
parent
commit
c675787587
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/compiledata.c

+ 1
- 1
src/libespeak-ng/compiledata.c View File

@@ -2867,7 +2867,7 @@ espeak_ng_STATUS espeak_ng_CompileIntonation(FILE *log, espeak_ng_ERROR_CONTEXT
rewind(f_in);
linenum = 1;

tune_data = (TUNE *)calloc(sizeof(TUNE), n_tune_names);
tune_data = (n_tune_names == 0) ? NULL : (TUNE *)calloc(n_tune_names, sizeof(TUNE));
if (tune_data == NULL) {
fclose(f_in);
fclose(f_errors);

Loading…
Cancel
Save