aboutsummaryrefslogtreecommitdiffstats
path: root/src/list.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-15 17:40:48 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-15 17:40:48 +0000
commitc3b76c4171c1737a1d0066c8ec38062d7ba327e0 (patch)
tree7e8f1d1414c5624eb8655dd434f5e7c1197a50f4 /src/list.c
parent731c9fa56c7f408957e1a595c35c50a360fcd57f (diff)
downloadmpd-c3b76c4171c1737a1d0066c8ec38062d7ba327e0.tar.gz
mpd-c3b76c4171c1737a1d0066c8ec38062d7ba327e0.tar.xz
mpd-c3b76c4171c1737a1d0066c8ec38062d7ba327e0.zip
ok, fix FindNode
git-svn-id: https://svn.musicpd.org/mpd/trunk@2675 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.c b/src/list.c
index 7db1ee145..45b19a93a 100644
--- a/src/list.c
+++ b/src/list.c
@@ -215,7 +215,7 @@ int findNodeInList(List * list, char * key, ListNode ** node) {
cmp = strcmp(tmpNode->key,key);
*node = tmpNode;
if( 0 == cmp ) return 1;
- else if( cmp < 0) return 0;
+ else if( cmp > 0) return 0;
else {
*node = NULL;
return 0;