aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Main.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 8e0b92d9c..e2bcaf4ec 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -528,8 +528,11 @@ int mpd_main(int argc, char *argv[])
if (config_get_bool(CONF_AUTO_UPDATE, false)) {
#ifdef ENABLE_INOTIFY
if (mapper_has_music_directory() &&
+ instance->storage != nullptr &&
instance->update != nullptr)
- mpd_inotify_init(*instance->event_loop, *instance->update,
+ mpd_inotify_init(*instance->event_loop,
+ *instance->storage,
+ *instance->update,
config_get_unsigned(CONF_AUTO_UPDATE_DEPTH,
G_MAXUINT));
#else