]> git.ipfire.org Git - thirdparty/curl.git/commit
cookie.c: Made cookie sort function more deterministic
authorMarc Hoersken <info@marc-hoersken.de>
Sun, 7 Apr 2013 08:34:32 +0000 (10:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 7 Apr 2013 16:38:49 +0000 (18:38 +0200)
commit762961fe352dbb8bc08f58b26ca8a18e7dd1999d
tree14b7cbe6542b85d1b4898c9a28425c0183910c67
parent4b643f1ca44e91683be8697709b786efd43c64ef
cookie.c: Made cookie sort function more deterministic

Since qsort implementations vary with regards to handling the order
of similiar elements, this change makes the internal sort function
more deterministic by comparing path length first, then domain length
and finally the cookie name. Spotted with testcase 62 on Windows.
lib/cookie.c