aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-04 19:09:34 +0100
committerMax Kellermann <max@duempel.org>2009-01-04 19:09:34 +0100
commitfed719197c7014151710c4aae9174990fd131d59 (patch)
tree0fb6d6f69aa60ecdf9eb89286f8354316fffcc92 /src/update.c
parentea8ae68e6f1a686fd96530fdaf7b428e33f58ec4 (diff)
downloadmpd-fed719197c7014151710c4aae9174990fd131d59.tar.gz
mpd-fed719197c7014151710c4aae9174990fd131d59.tar.xz
mpd-fed719197c7014151710c4aae9174990fd131d59.zip
song: allocate the result of song_get_url()
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c
index ec9890f31..f792b3c3c 100644
--- a/src/update.c
+++ b/src/update.c
@@ -699,8 +699,10 @@ static void reap_update_task(void)
cond_enter(&delete_cond);
if (delete) {
- char tmp[MPD_PATH_MAX];
- g_debug("removing: %s", song_get_url(delete, tmp));
+ char *tmp = song_get_uri(delete);
+ g_debug("removing: %s", tmp);
+ g_free(tmp);
+
deleteASongFromPlaylist(delete);
delete = NULL;
cond_signal_sync(&delete_cond);