aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/dbUtils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index 8b3eee371..dc7f3879c 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -233,7 +233,6 @@ static void
visitTag(struct client *client, struct strset *set,
struct song *song, enum tag_type tagType)
{
- int i;
struct tag *tag = song->tag;
if (tagType == LOCATE_TAG_FILE_TYPE) {
@@ -244,12 +243,13 @@ visitTag(struct client *client, struct strset *set,
if (!tag)
return;
- for (i = 0; i < tag->numOfItems; i++) {
+ for (unsigned i = 0; i < tag->num_items; i++) {
if (tag->items[i]->type == tagType) {
strset_add(set, tag->items[i]->value);
return;
}
}
+
strset_add(set, "");
}
@@ -294,7 +294,7 @@ int listAllUniqueTags(struct client *client, int type,
while ((value = strset_next(data.set)) != NULL)
client_printf(client, "%s: %s\n",
- mpdTagItemKeys[type],
+ tag_item_names[type],
value);
strset_free(data.set);