From: Andreas Obergrusberger Date: Fri, 4 Aug 2006 18:28:07 +0000 (+0000) Subject: patch by jat to fix http://musicpd.org/mantis/view.php?id=1293 X-Git-Tag: v0.12_alpha1~391 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=12ef035c14b9f363a0fa28e70de7e8092878af2d;p=ncmpc.git patch by jat to fix musicpd.org/mantis/view.php?id=1293 git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4548 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/src/mpdclient.c b/src/mpdclient.c index 1cb06bc..d950e25 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);