aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpd-notification.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 0194607..11443b0 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -334,11 +334,11 @@ int main(int argc, char ** argv) {
mpd_song_free(song);
} else if (state == MPD_STATE_PAUSE)
- notifystr = TEXT_PAUSE;
+ notifystr = strdup(TEXT_PAUSE);
else if (state == MPD_STATE_STOP)
- notifystr = TEXT_STOP;
+ notifystr = strdup(TEXT_STOP);
else
- notifystr = TEXT_UNKNOWN;
+ notifystr = strdup(TEXT_UNKNOWN);
if (verbose > 0)
printf("%s: %s\n", program, notifystr);