mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-10 08:13:55 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user