mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-04 22:38:33 +00:00
Fix the error logic in CompilePhonemeData2(compiledata.c) [clang scan-build]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user