From f9d12c31a478bfe3079ff4f168a0b47a81e8d369 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 14 Jan 2016 19:43:42 +0000 Subject: [PATCH] Remove the redundant access check in compiledata.c This access check is checking whether the phsource directory exists. Now that espeak-ng is using the errno message when opening the phsource/phonemes file, enough information should be provided by that error message. --- src/libespeak-ng/compiledata.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libespeak-ng/compiledata.c b/src/libespeak-ng/compiledata.c index 89d2a182..82defd8c 100644 --- a/src/libespeak-ng/compiledata.c +++ b/src/libespeak-ng/compiledata.c @@ -2633,7 +2633,6 @@ static void CompilePhonemeFiles() static espeak_ng_STATUS CompilePhonemeData2(const char *source, FILE *log, espeak_ng_ERROR_CONTEXT *context) { char fname[sizeof(path_home)+40]; - sprintf(fname, "%s/../phsource", path_home); fprintf(log, "Compiling phoneme data: %s\n", fname); n_envelopes = 0; @@ -2643,9 +2642,6 @@ static espeak_ng_STATUS CompilePhonemeData2(const char *source, FILE *log, espea f_errors = log; - if (!access(fname, 755)) - return create_file_error_context(context, errno, fname); - strncpy0(current_fname, source, sizeof(current_fname)); sprintf(fname, "%s/../phsource/phonemes", path_home);