join.c: clean up verify_swm_set()
authorEric Biggers <ebiggers3@gmail.com>
Sat, 17 Dec 2016 03:47:44 +0000 (19:47 -0800)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 17 Dec 2016 03:47:44 +0000 (19:47 -0800)
commitbc1a4ee900196f4934a79b434aa3c3ca24e65a23
treea3a0ff5ac9e471d5b98b3edc1868845476b48dfd
parent1d5cae645b413239294cb98bf6b16b281ae10df7
join.c: clean up verify_swm_set()

UBSAN complained when the parts_to_swms array had 0 length.  Clean this
up by sorting the parts first, making the verification simpler.  Also
don't bother checking compression_type and chunk_size anymore; checking
guid should be sufficient, and it doesn't really matter if the
compression formats are different since now everything will be written
out correctly anyway.
src/join.c