aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-05 12:50:04 +0100
committerMax Kellermann <max@duempel.org>2009-01-05 12:50:04 +0100
commit493f661fa40cd9e8c1777c44b3dd08b4966028c0 (patch)
tree5f5b1497bf091c3c8069ff0524d80c07ff311b40 /src
parentd9c2960a55daa925acddda70f7ece8bba8d4b113 (diff)
downloadmpd-493f661fa40cd9e8c1777c44b3dd08b4966028c0.tar.gz
mpd-493f661fa40cd9e8c1777c44b3dd08b4966028c0.tar.xz
mpd-493f661fa40cd9e8c1777c44b3dd08b4966028c0.zip
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.
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)