summaryrefslogtreecommitdiffstats
path: root/player/scripting.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/scripting.c')
-rw-r--r--player/scripting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/scripting.c b/player/scripting.c
index 6e2a5a4e2d..5bc9a915f3 100644
--- a/player/scripting.c
+++ b/player/scripting.c
@@ -157,7 +157,7 @@ static char **list_script_files(void *talloc_ctx, char *path)
while ((ep = readdir(dp))) {
char *fname = mp_path_join(talloc_ctx, bstr0(path), bstr0(ep->d_name));
struct stat s;
- if (!mp_stat(fname, &s) && S_ISREG(s.st_mode))
+ if (!stat(fname, &s) && S_ISREG(s.st_mode))
MP_TARRAY_APPEND(talloc_ctx, files, count, fname);
}
closedir(dp);