It's not actually legal by the C standard to call qsort with a null
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 11 Jul 2013 17:24:39 +0000 (17:24 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 11 Jul 2013 17:24:39 +0000 (17:24 +0000)
commitfb73b28d8dd9758d692fc368fd2bb0490b5e3bcc
tree272840d3b0e887aef284fc84ce65505c54d0f1e4
parentfeae2dfc998c2e9433cb88da64cab0fdc7e5896c
It's not actually legal by the C standard to call qsort with a null
array pointer, _even_ if you're asking it to sort zero elements so
that in principle it should never dereference that pointer. Fix the
four instances in PSCP/PSFTP where this was previously occurring.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9912 cda61777-01e9-0310-a592-d414129be87e
pscp.c
psftp.c