mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:27:16 +03: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue