diff options
author | Daniel Gustafsson <daniel@yesql.se> | 2021-06-03 13:02:09 +0200 |
---|---|---|
committer | Daniel Gustafsson <daniel@yesql.se> | 2021-06-03 13:02:09 +0200 |
commit | 002f976cdc890589ae4ab7e99519f52421ca6837 (patch) | |
tree | 439e78bbb996fe7a1c3ea214f4d731169556f1ca /lib/cookie.c | |
parent | 9750bc97d8c52f7a531e115b2a5d7c105c8fd5b5 (diff) | |
download | curl-002f976cdc890589ae4ab7e99519f52421ca6837.tar.gz |
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.
Diffstat (limited to 'lib/cookie.c')
-rw-r--r-- | lib/cookie.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c index fde6a84ce..537658fc6 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) { |