Code

patch by jat to fix http://musicpd.org/mantis/view.php?id=1293
authorAndreas Obergrusberger <tradiaz@yahoo.de>
Fri, 4 Aug 2006 18:28:07 +0000 (18:28 +0000)
committerAndreas Obergrusberger <tradiaz@yahoo.de>
Fri, 4 Aug 2006 18:28:07 +0000 (18:28 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4548 09075e82-0dd4-0310-85a5-a0d7c8717e4f

src/mpdclient.c

index 1cb06bc75eb5bb86db80b485c180dc4b419c8c65..d950e254df999501dd4e679e52d0fd425963f326 100644 (file)
@@ -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);