aboutsummaryrefslogtreecommitdiffstats
path: root/src/locate.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-01-26 12:46:21 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-26 12:46:21 +0000
commit07adb14e3c4daa8b1e6ebc69e54128b38b014d30 (patch)
tree7d22b4b2eb31a9bf46cf648731fe1370005ab1c9 /src/locate.c
parent28008e697720bb2b11989bb887eb468b91409b1a (diff)
downloadmpd-07adb14e3c4daa8b1e6ebc69e54128b38b014d30.tar.gz
mpd-07adb14e3c4daa8b1e6ebc69e54128b38b014d30.tar.xz
mpd-07adb14e3c4daa8b1e6ebc69e54128b38b014d30.zip
fixed -Wshadow warnings
Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7143 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/locate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/locate.c b/src/locate.c
index d09e68a1e..3a4e35b84 100644
--- a/src/locate.c
+++ b/src/locate.c
@@ -123,7 +123,7 @@ void freeLocateTagItem(LocateTagItem * item)
static int strstrSearchTag(Song * song, int type, char *str)
{
int i;
- char *dup;
+ char *duplicate;
int ret = 0;
if (type == LOCATE_TAG_FILE_TYPE || type == LOCATE_TAG_ANY_TYPE) {
@@ -145,10 +145,10 @@ static int strstrSearchTag(Song * song, int type, char *str)
continue;
}
- dup = strDupToUpper(song->tag->items[i].value);
- if (strstr(dup, str))
+ duplicate = strDupToUpper(song->tag->items[i].value);
+ if (strstr(duplicate, str))
ret = 1;
- free(dup);
+ free(duplicate);
}
return ret;