From b1d50567c69d256beebe22c485920da2c484e014 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 9 Mar 2007 14:44:09 +0000 Subject: fix bug #1458 git-svn-id: https://svn.musicpd.org/mpd/trunk@5589 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/tag.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tag.c') 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); */ -- cgit v1.2.3