Browse Source

Return the actual error from GetFileLength instead of 0.

master
Reece H. Dunn 8 years ago
parent
commit
3ce7fab7db
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/speech.c

+ 1
- 1
src/libespeak-ng/speech.c View File

struct stat statbuf; struct stat statbuf;


if (stat(filename, &statbuf) != 0) if (stat(filename, &statbuf) != 0)
return 0;
return -errno;


if (S_ISDIR(statbuf.st_mode)) if (S_ISDIR(statbuf.st_mode))
return -EISDIR; return -EISDIR;

Loading…
Cancel
Save