Browse Source

Fix the error logic in espeak_ng_CompileDictionary(compiledict.c) [clang scan-build]

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

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

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);



Loading…
Cancel
Save