diff options
author | Max Kellermann <max@duempel.org> | 2008-12-13 01:54:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-13 01:54:11 +0100 |
commit | dedaf7033b1d40235792f76e3871e7b933805f67 (patch) | |
tree | 254797b7aee28739c6b0b91038e0a9bbad48be3f /src/locate.c | |
parent | 0dab2c5bc1bc7b424ec7d04a1089fa181ca89082 (diff) | |
download | mpd-dedaf7033b1d40235792f76e3871e7b933805f67.tar.gz mpd-dedaf7033b1d40235792f76e3871e7b933805f67.tar.xz mpd-dedaf7033b1d40235792f76e3871e7b933805f67.zip |
locate: ignore case when searching in song paths
The function strstrSearchTag() used g_utf8_casefold() to generate the
(pseudo-)lowercase version of the song's URL, but it never used the
variable.
Diffstat (limited to '')
-rw-r--r-- | src/locate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locate.c b/src/locate.c index 6b8e87734..2004b132d 100644 --- a/src/locate.c +++ b/src/locate.c @@ -138,7 +138,7 @@ strstrSearchTag(struct song *song, enum tag_type type, char *str) song_get_url(song, path_max_tmp); p = g_utf8_casefold(path_max_tmp, -1); - if (strstr(path_max_tmp, str)) + if (strstr(p, str)) ret = 1; g_free(p); if (ret == 1 || type == LOCATE_TAG_FILE_TYPE) |