Browse Source

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.
master
Reece H. Dunn 9 years ago
parent
commit
f9d12c31a4
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      src/libespeak-ng/compiledata.c

+ 0
- 4
src/libespeak-ng/compiledata.c 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);

Loading…
Cancel
Save