aboutsummaryrefslogtreecommitdiffstats
path: root/src/mpdclient.c
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2006-08-04 18:28:07 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2006-08-04 18:28:07 +0000
commit12ef035c14b9f363a0fa28e70de7e8092878af2d (patch)
tree045369a04fa7b6256963b5868e6f57ea28e9295b /src/mpdclient.c
parent4960a256350bd81697febfc36cff6bac8ec213d4 (diff)
downloadmpd-12ef035c14b9f363a0fa28e70de7e8092878af2d.tar.gz
mpd-12ef035c14b9f363a0fa28e70de7e8092878af2d.tar.xz
mpd-12ef035c14b9f363a0fa28e70de7e8092878af2d.zip
patch by jat to fix http://musicpd.org/mantis/view.php?id=1293
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4548 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/mpdclient.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mpdclient.c b/src/mpdclient.c
index 1cb06bc75..d950e254d 100644
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
@@ -871,11 +871,8 @@ mpdclient_filelist_get(mpdclient_t *c, gchar *path)
filelist->length++;
}
- if( mpdclient_finish_command(c) )
- {
- g_free(path_utf8);
- return mpdclient_filelist_free(filelist);
- }
+ /* If there's an error, ignore it. We'll return an empty filelist. */
+ mpdclient_finish_command(c);
g_free(path_utf8);
filelist->path = g_strdup(path);