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.
This commit is contained in:
Reece H. Dunn
2016-01-14 19:43:42 +00:00
parent c22550afb5
commit f9d12c31a4
-4
View File
@@ -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);