From 493f661fa40cd9e8c1777c44b3dd08b4966028c0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 5 Jan 2009 12:50:04 +0100 Subject: 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. --- src/locate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3