From: Daniel Gustafsson Date: Thu, 3 Jun 2021 11:02:09 +0000 (+0200) Subject: cookies: fix typo and expand comment X-Git-Tag: curl-7_78_0~213 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=002f976cdc890589ae4ab7e99519f52421ca6837;p=thirdparty%2Fcurl.git cookies: fix typo and expand comment Fix a typo in the sorting comment, and while in there elaborate slightly on why creationtime can be used as a tiebreaker. --- diff --git a/lib/cookie.c b/lib/cookie.c index fde6a84ce6..537658fc6a 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -1221,7 +1221,8 @@ fail: * * Helper function to sort cookies such that the longest path gets before the * shorter path. Path, domain and name lengths are considered in that order, - * with tge creationtime as the tiebreaker. + * with the creationtime as the tiebreaker. The creationtime is guaranteed to + * be unique per cookie, so we know we will get an ordering at that point. */ static int cookie_sort(const void *p1, const void *p2) {