Commit 493f661f authored by Max Kellermann's avatar Max Kellermann

locate: fix strcmp() return value check

Yesterday's patch set changed tagItemFoundAndMatches() and moved the strcmp() return value into a bool, but forgot to add the ==0 check.
parent d9c2960a
...@@ -199,7 +199,7 @@ tagItemFoundAndMatches(struct song *song, enum tag_type type, char *str) ...@@ -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) { if (type == LOCATE_TAG_FILE_TYPE || type == LOCATE_TAG_ANY_TYPE) {
char *uri = song_get_uri(song); char *uri = song_get_uri(song);
bool matches = strcmp(str, uri); bool matches = strcmp(str, uri) == 0;
g_free(uri); g_free(uri);
if (matches) if (matches)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment