summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--playlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index b24749ee..d156d8d3 100644
--- a/playlist.c
+++ b/playlist.c
@@ -91,8 +91,11 @@ static uintptr_t mutex_plt;
#define GLOBAL_LOCK {pl_global_lock();}
#define GLOBAL_UNLOCK {pl_global_unlock();}
+static playlist_t dummy_playlist; // used at startup to prevent crashes
+
int
pl_init (void) {
+ playlist = &dummy_playlist;
#if !DISABLE_LOCKING
mutex = mutex_create ();
mutex_plt = mutex_create ();