aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-07 22:07:44 +0200
committerMax Kellermann <max@duempel.org>2008-10-07 22:07:44 +0200
commit8be60263361fa00e9ea332e64db8122455d234d9 (patch)
treef3e140ec48a9db851a8148a2f768128f930f9805 /src/dbUtils.c
parent45334a23e18da4928f53ccb9ecc7afd5f7eca28e (diff)
downloadmpd-8be60263361fa00e9ea332e64db8122455d234d9.tar.gz
mpd-8be60263361fa00e9ea332e64db8122455d234d9.tar.xz
mpd-8be60263361fa00e9ea332e64db8122455d234d9.zip
dbUtils/directory: traverseAllIn forEachSong returns -1 on error
Being consistent with most UNIX functions...
Diffstat (limited to '')
-rw-r--r--src/dbUtils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index 29e92494e..3b5d896b6 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -83,7 +83,7 @@ static int searchInDirectory(Song * song, void *_data)
LocateTagItemArray *array = &data->array;
if (strstrSearchTags(song, array->numItems, array->items))
- song_print_info(data->client, song);
+ return song_print_info(data->client, song);
return 0;
}
@@ -124,7 +124,7 @@ static int findInDirectory(Song * song, void *_data)
LocateTagItemArray *array = &data->array;
if (tagItemsFoundAndMatches(song, array->numItems, array->items))
- song_print_info(data->client, song);
+ return song_print_info(data->client, song);
return 0;
}