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

fclose(f_in); fclose(f_in);
fclose(f_report); fclose(f_report);
fclose(f_phcontents); 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"); sprintf(fname, "%s/%s", path_home, "phonindex");
fclose(f_report); fclose(f_report);
fclose(f_phcontents); fclose(f_phcontents);
fclose(f_phdata); 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"); sprintf(fname, "%s/%s", path_home, "phontab");
fclose(f_phcontents); fclose(f_phcontents);
fclose(f_phdata); fclose(f_phdata);
fclose(f_phindex); 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); sprintf(fname, "%s/../phsource/compile_prog_log", path_home);

Loading…
Cancel
Save