aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2007-03-09 14:44:09 +0000
committerWarren Dukes <warren.dukes@gmail.com>2007-03-09 14:44:09 +0000
commitb1d50567c69d256beebe22c485920da2c484e014 (patch)
tree34e379de7a3e3023ea47d399ba1b900f1badd4c0 /src
parentd93e939557d1d79bc0b6234dfb6f672dfd7fe94b (diff)
downloadmpd-b1d50567c69d256beebe22c485920da2c484e014.tar.gz
mpd-b1d50567c69d256beebe22c485920da2c484e014.tar.xz
mpd-b1d50567c69d256beebe22c485920da2c484e014.zip
fix bug #1458
git-svn-id: https://svn.musicpd.org/mpd/trunk@5589 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-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); */