aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;