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.
This commit is contained in:
parent
0dab2c5bc1
commit
dedaf7033b
|
@ -138,7 +138,7 @@ strstrSearchTag(struct song *song, enum tag_type type, char *str)
|
||||||
|
|
||||||
song_get_url(song, path_max_tmp);
|
song_get_url(song, path_max_tmp);
|
||||||
p = g_utf8_casefold(path_max_tmp, -1);
|
p = g_utf8_casefold(path_max_tmp, -1);
|
||||||
if (strstr(path_max_tmp, str))
|
if (strstr(p, str))
|
||||||
ret = 1;
|
ret = 1;
|
||||||
g_free(p);
|
g_free(p);
|
||||||
if (ret == 1 || type == LOCATE_TAG_FILE_TYPE)
|
if (ret == 1 || type == LOCATE_TAG_FILE_TYPE)
|
||||||
|
|
Loading…
Reference in New Issue