aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/locate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locate.c b/src/locate.c
index 55163b1e4..cd26dbd68 100644
--- a/src/locate.c
+++ b/src/locate.c
@@ -199,7 +199,7 @@ tagItemFoundAndMatches(struct song *song, enum tag_type type, char *str)
if (type == LOCATE_TAG_FILE_TYPE || type == LOCATE_TAG_ANY_TYPE) {
char *uri = song_get_uri(song);
- bool matches = strcmp(str, uri);
+ bool matches = strcmp(str, uri) == 0;
g_free(uri);
if (matches)