2 parents 7f787cb + 51f0824 commit d30a36bCopy full SHA for d30a36b
1 file changed
src/song.c
@@ -219,7 +219,10 @@ mpd_song_dup(const struct mpd_song *song)
219
} while (src_tag != NULL);
220
}
221
222
- ret->real_uri = strdup(song->real_uri);
+ if (song->real_uri != NULL) {
223
+ ret->real_uri = strdup(song->real_uri);
224
+ }
225
+
226
ret->duration = song->duration;
227
ret->duration_ms = song->duration_ms;
228
ret->start = song->start;
0 commit comments