1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 12:27:52 +00:00

Null mpd variables should have an empty string patch sf.net id #2564747.

This commit is contained in:
Sattvik 2009-02-17 22:42:08 -07:00 committed by Brenden Matthews
parent d1180b4729
commit 482dd1b82f
2 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@
* Extended support for local Maildir patch sf.net id #2561323 (thanks * Extended support for local Maildir patch sf.net id #2561323 (thanks
Nicolas) Nicolas)
* XMMS2 fix and refactoring patch sf.net id #2579357 (thanks Tamim) * 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 2009-02-15
* Added out_to_x * Added out_to_x

View File

@ -129,6 +129,7 @@ static void *update_mpd_thread(void *arg)
mpd_Status *status; mpd_Status *status;
mpd_InfoEntity *entity; mpd_InfoEntity *entity;
timed_thread *me = *(timed_thread **)arg; timed_thread *me = *(timed_thread **)arg;
const char *emptystr = "";
while (1) { while (1) {
clear_mpd(); clear_mpd();
@ -247,7 +248,7 @@ static void *update_mpd_thread(void *arg)
mpd_freeInfoEntity(entity); mpd_freeInfoEntity(entity);
continue; 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(artist);
SONGSET(album); SONGSET(album);
SONGSET(title); SONGSET(title);