check if mpd_Song pointer passed to Song::Song() is NULL
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user