aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/locate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locate.c b/src/locate.c
index 6b8e8773..2004b132 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)