aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-08 12:07:08 +0200
committerMax Kellermann <max@duempel.org>2008-09-08 12:07:08 +0200
commitda1e8584585af9c92b92a25c049829b7012af191 (patch)
treefa43c1cb1529339eb1f5e3f02428264747b42aed /src
parentf0e64ceb48c485baf32528bba44875885d384354 (diff)
downloadmpd-da1e8584585af9c92b92a25c049829b7012af191.tar.gz
mpd-da1e8584585af9c92b92a25c049829b7012af191.tar.xz
mpd-da1e8584585af9c92b92a25c049829b7012af191.zip
strset: fix duplicate values
Due to a minor typo, the string set had duplicate values, because strset_add() didn't check the base slot properly.
Diffstat (limited to '')
-rw-r--r--src/strset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strset.c b/src/strset.c
index 6bf61a4b2..475266370 100644
--- a/src/strset.c
+++ b/src/strset.c
@@ -85,7 +85,7 @@ void strset_add(struct strset *set, const char *value)
return;
}
- for (slot = base_slot->next; slot != NULL; slot = slot->next)
+ for (slot = base_slot; slot != NULL; slot = slot->next)
if (strcmp(slot->value, value) == 0)
/* found it - do nothing */
return;