Skip to content

Commit

Permalink
Fixed bogus condition in GT, GTE, LT and LTE script tests.
Browse files Browse the repository at this point in the history
Reported by dcb314 on GITHUB
Closing issue #146

(cherry picked from commit 96921f5)
  • Loading branch information
bogdan-iancu committed Dec 6, 2013
1 parent 8ce3850 commit cffe252
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions route.c
Expand Up @@ -1087,7 +1087,7 @@ inline static int comp_s2s(int op, str *s1, str *s2)
rt = strncasecmp(s1->s,s2->s, n);
if (rt>0)
ret = 1;
else if(rt==0 && s1->len>s1->len)
else if(rt==0 && s1->len>s2->len)
ret = 1;
else ret = 0;
break;
Expand All @@ -1097,7 +1097,7 @@ inline static int comp_s2s(int op, str *s1, str *s2)
rt = strncasecmp(s1->s,s2->s, n);
if (rt>0)
ret = 1;
else if(rt==0 && s1->len>=s1->len)
else if(rt==0 && s1->len>=s2->len)
ret = 1;
else ret = 0;
break;
Expand All @@ -1107,7 +1107,7 @@ inline static int comp_s2s(int op, str *s1, str *s2)
rt = strncasecmp(s1->s,s2->s, n);
if (rt<0)
ret = 1;
else if(rt==0 && s1->len<s1->len)
else if(rt==0 && s1->len<s2->len)
ret = 1;
else ret = 0;
break;
Expand All @@ -1117,7 +1117,7 @@ inline static int comp_s2s(int op, str *s1, str *s2)
rt = strncasecmp(s1->s,s2->s, n);
if (rt<0)
ret = 1;
else if(rt==0 && s1->len<=s1->len)
else if(rt==0 && s1->len<=s2->len)
ret = 1;
else ret = 0;
break;
Expand Down

0 comments on commit cffe252

Please sign in to comment.