mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 14:08:07 -05:00
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.
This commit is contained in:
parent
9750bc97d8
commit
002f976cdc
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user