aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-10-05 16:55:30 +0200
committerMax Kellermann <max@duempel.org>2012-10-05 16:55:30 +0200
commit72bf2266085449d5549dbce98582ec564294ea21 (patch)
tree5d1596489d673b752cbf793d6d228df68564173f /src
parentd4b5699403b60c5143e213c4239d11cd3497abb6 (diff)
downloadmpd-72bf2266085449d5549dbce98582ec564294ea21.tar.gz
mpd-72bf2266085449d5549dbce98582ec564294ea21.tar.xz
mpd-72bf2266085449d5549dbce98582ec564294ea21.zip
playlist_save: use temp2 instead of temp
Fixes minor Windows compatibility problem.
Diffstat (limited to '')
-rw-r--r--src/playlist_save.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/playlist_save.c b/src/playlist_save.c
index 122eca332..334159e0d 100644
--- a/src/playlist_save.c
+++ b/src/playlist_save.c
@@ -137,7 +137,8 @@ playlist_load_spl(struct playlist *playlist, struct player_control *pc,
*p = '/';
p++;
}
- if ((playlist_append_uri(playlist, pc, temp, NULL)) != PLAYLIST_RESULT_SUCCESS) {
+ if ((playlist_append_uri(playlist, pc, temp2,
+ NULL)) != PLAYLIST_RESULT_SUCCESS) {
g_warning("can't add file \"%s\"", temp2);
}
g_free(temp2);