From aeb1639b2ed07223428c2a2bc358a38d9a9fb6b2 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Wed, 6 Jan 2016 22:41:57 +0000 Subject: [PATCH] Fix the error logic in espeak_ng_CompileDictionary(compiledict.c) [clang scan-build] --- src/libespeak-ng/compiledict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libespeak-ng/compiledict.c b/src/libespeak-ng/compiledict.c index 1c41515f..b2f40890 100644 --- a/src/libespeak-ng/compiledict.c +++ b/src/libespeak-ng/compiledict.c @@ -1542,7 +1542,7 @@ ESPEAK_NG_API espeak_ng_STATUS espeak_ng_CompileDictionary(const char *dsource, if ((f_out = fopen(fname_out, "wb+")) == NULL) { int error = errno; 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);