aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c
index 5ab75d7ac..38bc22a28 100644
--- a/src/update.c
+++ b/src/update.c
@@ -206,9 +206,13 @@ static int
stat_directory_child(const struct directory *parent, const char *name,
struct stat *st)
{
- char path_fs[MPD_PATH_MAX];
+ char buffer[MPD_PATH_MAX];
+ const char *path_fs;
+
+ path_fs = map_directory_child_fs(parent, name, buffer);
+ if (path_fs == NULL)
+ return -1;
- map_directory_child_fs(parent, name, path_fs);
return stat(path_fs, st);
}