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:
Max Kellermann 2009-01-05 12:50:04 +01:00
parent d9c2960a55
commit 493f661fa4
1 changed files with 1 additions and 1 deletions

View File

@ -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)