aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index ca08d5fb2..cbf513d05 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -784,7 +784,7 @@ static int cookie_sort(const void *p1, const void *p2)
size_t l1 = c1->path?strlen(c1->path):0;
size_t l2 = c2->path?strlen(c2->path):0;
- return (int)(l2 - l1);
+ return (l2 > l1) ? 1 : (l2 < l1) ? -1 : 0 ;
}
/*****************************************************************************