aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/song.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c
index 2bb2b85b5..f40e50027 100644
--- a/src/song.c
+++ b/src/song.c
@@ -78,7 +78,7 @@ song_file_load(const char *path, struct directory *parent)
song = song_file_new(path, parent);
//in archive ?
- if (parent->device == DEVICE_INARCHIVE) {
+ if (parent != NULL && parent->device == DEVICE_INARCHIVE) {
ret = song_file_update_inarchive(song);
} else {
ret = song_file_update(song);