check if mpd_Song pointer passed to Song::Song() is NULL

This commit is contained in:
Andrzej Rybczak
2009-01-13 11:24:20 +01:00
parent de5370b0dc
commit 5704ea9fa2

View File

@@ -26,7 +26,7 @@
#include "song.h" #include "song.h"
#include "settings.h" #include "settings.h"
Song::Song(mpd_Song *s, bool copy_ptr) : itsSong(s), Song::Song(mpd_Song *s, bool copy_ptr) : itsSong(s ? s : mpd_newSong()),
itsSlash(string::npos), itsSlash(string::npos),
itsHash(0), itsHash(0),
copyPtr(copy_ptr), copyPtr(copy_ptr),