diff --git a/src/main.c b/src/main.c
index b67165f144f9eec225a338285ed9c96dcafe6cfd..72a9362e53e2cee8f3766484e32a9739765b1dfc 100644 (file)
--- a/src/main.c
+++ b/src/main.c
if (options.xterm_title_format && mpd->playing && song)
strfsong(tmp, BUFSIZE, options.xterm_title_format, song);
else
+ *tmp = 0;
+
+ if (*tmp == 0)
g_strlcpy(tmp, PACKAGE " version " VERSION, BUFSIZE);
static char title[BUFSIZE];