mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
Return the actual error from GetFileLength instead of 0.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user