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.
This commit is contained in:
parent
d9c2960a55
commit
493f661fa4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue