diff options
author | Max Kellermann <max@duempel.org> | 2013-07-30 08:30:56 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-30 08:31:02 +0200 |
commit | cd1bb2bafa2653e5d4c7c9abf6f464bcdec693c5 (patch) | |
tree | 73cf6bb9dabbb5b8de122add993a564ee4a62588 /src | |
parent | a9d2dc614496a8eee4269f4032457eb8a7fb6102 (diff) | |
download | mpd-cd1bb2bafa2653e5d4c7c9abf6f464bcdec693c5.tar.gz mpd-cd1bb2bafa2653e5d4c7c9abf6f464bcdec693c5.tar.xz mpd-cd1bb2bafa2653e5d4c7c9abf6f464bcdec693c5.zip |
Main: fix crash without state file
If no state file is configured, don't chek for state changes.
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index ff957c1ee..47160a575 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -348,7 +348,8 @@ idle_event_emitted(void) if (flags != 0) instance->client_list->IdleAdd(flags); - if (flags & (IDLE_PLAYLIST|IDLE_PLAYER|IDLE_MIXER|IDLE_OUTPUT)) + if (flags & (IDLE_PLAYLIST|IDLE_PLAYER|IDLE_MIXER|IDLE_OUTPUT) && + state_file != nullptr) state_file->CheckModified(); } |