diff options
author | Max Kellermann <max@duempel.org> | 2009-01-05 12:50:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-05 12:50:04 +0100 |
commit | 493f661fa40cd9e8c1777c44b3dd08b4966028c0 (patch) | |
tree | 5f5b1497bf091c3c8069ff0524d80c07ff311b40 /src/locate.c | |
parent | d9c2960a55daa925acddda70f7ece8bba8d4b113 (diff) | |
download | mpd-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/locate.c')
-rw-r--r-- | src/locate.c | 2 |
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) |