mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-03 23:09:52 +00:00
Fix the error logic in espeak_ng_CompileDictionary(compiledict.c) [clang scan-build]
This commit is contained in:
@@ -1542,7 +1542,7 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_CompileDictionary(const char *dsource,
|
|||||||
if ((f_out = fopen(fname_out, "wb+")) == NULL) {
|
if ((f_out = fopen(fname_out, "wb+")) == NULL) {
|
||||||
int error = errno;
|
int error = errno;
|
||||||
fclose(f_in);
|
fclose(f_in);
|
||||||
return create_file_error_context(context, errno, fname_out);
|
return create_file_error_context(context, error, fname_out);
|
||||||
}
|
}
|
||||||
sprintf(fname_temp, "%s%ctemp", path_home, PATHSEP);
|
sprintf(fname_temp, "%s%ctemp", path_home, PATHSEP);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user