sort: fix a bug with sort -u and xmemcoll0, and tune keycompare
authorPaul R. Eggert <eggert@cs.ucla.edu>
Thu, 15 Jul 2010 23:24:03 +0000 (16:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Jul 2010 23:24:38 +0000 (16:24 -0700)
commitc580983f70cbc567e68ad2fbadca92341646b018
treee7408e2138c5a1f9bf92264f6a0294c849ac9e90
parentaadc67dfdb47f28bb8d1fa5e0fe0f52e2a8c51bf
sort: fix a bug with sort -u and xmemcoll0, and tune keycompare

* src/sort.c (keycompare): Use xmemcoll0, as it avoids
a couple of stores.
(write_bytes): Leave the buffer the way we found it,
as it might be used again for a later comparison,
if -u is used.
src/sort.c