mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
Null mpd variables should have an empty string patch sf.net id #2564747.
This commit is contained in:
parent
d1180b4729
commit
482dd1b82f
@ -20,6 +20,7 @@
|
||||
* Extended support for local Maildir patch sf.net id #2561323 (thanks
|
||||
Nicolas)
|
||||
* XMMS2 fix and refactoring patch sf.net id #2579357 (thanks Tamim)
|
||||
* Null mpd variables should have an empty string patch sf.net id #2564747
|
||||
|
||||
2009-02-15
|
||||
* Added out_to_x
|
||||
|
@ -129,6 +129,7 @@ static void *update_mpd_thread(void *arg)
|
||||
mpd_Status *status;
|
||||
mpd_InfoEntity *entity;
|
||||
timed_thread *me = *(timed_thread **)arg;
|
||||
const char *emptystr = "";
|
||||
|
||||
while (1) {
|
||||
clear_mpd();
|
||||
@ -247,7 +248,7 @@ static void *update_mpd_thread(void *arg)
|
||||
mpd_freeInfoEntity(entity);
|
||||
continue;
|
||||
}
|
||||
#define SONGSET(x) if(song->x) mpd_info.x = strmdup(song->x)
|
||||
#define SONGSET(x) if(song->x) mpd_info.x = strmdup(song->x); else mpd_info.x = strmdup(emptystr)
|
||||
SONGSET(artist);
|
||||
SONGSET(album);
|
||||
SONGSET(title);
|
||||
|
Loading…
Reference in New Issue
Block a user