aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-14 21:28:18 +0000
committerKalle Wallin <kaw@linux.se>2004-06-14 21:28:18 +0000
commitabd01cf323cffaf62e11ab8b008155e339e7f1dc (patch)
tree7ee9e7e761c7f3c8eaf912dffde4b44a1d7e46bc
parent39758c8503fb5390afaceeff3dd5b0bca75feb97 (diff)
downloadmpd-abd01cf323cffaf62e11ab8b008155e339e7f1dc.tar.gz
mpd-abd01cf323cffaf62e11ab8b008155e339e7f1dc.tar.xz
mpd-abd01cf323cffaf62e11ab8b008155e339e7f1dc.zip
Fixed mpdclient_filelist_update()
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1486 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/mpdclient.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mpdclient.c b/src/mpdclient.c
index af6476fdb..89ed29e2a 100644
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
@@ -758,6 +758,7 @@ mpdclient_filelist_free(mpdclient_filelist_t *filelist)
{
GList *list = g_list_first(filelist->list);
+ D("mpdclient_filelist_free()\n");
while( list!=NULL )
{
filelist_entry_t *entry = list->data;
@@ -785,6 +786,7 @@ mpdclient_filelist_get(mpdclient_t *c, gchar *path)
mpd_InfoEntity *entity;
gchar *path_utf8 = locale_to_utf8(path);
+ D("mpdclient_filelist_get(%s)\n", path);
mpd_sendLsInfoCommand(c->connection, path_utf8);
filelist = g_malloc0(sizeof(mpdclient_filelist_t));
if( path && path[0] && strcmp(path, "/") )
@@ -821,7 +823,7 @@ mpdclient_filelist_get(mpdclient_t *c, gchar *path)
mpdclient_filelist_t *
mpdclient_filelist_update(mpdclient_t *c, mpdclient_filelist_t *filelist)
{
- if( filelist == NULL )
+ if( filelist != NULL )
{
gchar *path = g_strdup(filelist->path);