aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-13 19:17:38 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-13 19:17:38 +0000
commit3dafd6ced0b06734f30d5339004dd29b9ac8975b (patch)
tree8351662cb409eaffc082f400895a5bd820d86f8d /src/dbUtils.c
parentff2bd4d4c17dacd6f378b6d7596fb6d264f6bf3d (diff)
downloadmpd-3dafd6ced0b06734f30d5339004dd29b9ac8975b.tar.gz
mpd-3dafd6ced0b06734f30d5339004dd29b9ac8975b.tar.xz
mpd-3dafd6ced0b06734f30d5339004dd29b9ac8975b.zip
fix bug in find
git-svn-id: https://svn.musicpd.org/mpd/trunk@2638 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/dbUtils.c')
-rw-r--r--src/dbUtils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index 2f915a13a..5878e6f0f 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -215,7 +215,7 @@ int findInDirectory(FILE * fp, Song * song, void * data) {
LocateTagItemArray * array = data;
int i;
- for(i = 0; i < 0; i++) {
+ for(i = 0; i < array->numItems; i++) {
if(!tagItemFoundAndMatches(song, array->items[i].tagType,
array->items[i].needle))
{