Browse Source

Fix the error logic in CompilePhonemeData2(compiledata.c) [clang scan-build]

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

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

@@ -2677,7 +2677,7 @@ static espeak_ng_STATUS CompilePhonemeData2(const char *source, FILE *log, espea
fclose(f_in);
fclose(f_report);
fclose(f_phcontents);
return create_file_error_context(context, errno, fname);
return create_file_error_context(context, error, fname);
}

sprintf(fname, "%s/%s", path_home, "phonindex");
@@ -2688,7 +2688,7 @@ static espeak_ng_STATUS CompilePhonemeData2(const char *source, FILE *log, espea
fclose(f_report);
fclose(f_phcontents);
fclose(f_phdata);
return create_file_error_context(context, errno, fname);
return create_file_error_context(context, error, fname);
}

sprintf(fname, "%s/%s", path_home, "phontab");
@@ -2700,7 +2700,7 @@ static espeak_ng_STATUS CompilePhonemeData2(const char *source, FILE *log, espea
fclose(f_phcontents);
fclose(f_phdata);
fclose(f_phindex);
return create_file_error_context(context, errno, fname);
return create_file_error_context(context, error, fname);
}

sprintf(fname, "%s/../phsource/compile_prog_log", path_home);

Loading…
Cancel
Save