aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tag.c b/src/tag.c
index 40eb44b37..7415837fe 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -489,9 +489,8 @@ MpdTag *newMpdTag(void)
static void deleteItem(MpdTag * tag, int index)
{
- tag->numOfItems--;
-
assert(index < tag->numOfItems);
+ tag->numOfItems--;
removeTagItemString(tag->items[index].type, tag->items[index].value);
/* free(tag->items[index].value); */