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

@@ -281,7 +281,7 @@ int GetFileLength(const char *filename)
struct stat statbuf;

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

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

Loading…
Cancel
Save