]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
It's not actually legal by the C standard to call qsort with a null
authorSimon Tatham <anakin@pobox.com>
Thu, 11 Jul 2013 17:24:39 +0000 (17:24 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 11 Jul 2013 17:24:39 +0000 (17:24 +0000)
commitda32db15957789d13b7e37b298f733cfc1099218
tree272840d3b0e887aef284fc84ce65505c54d0f1e4
parent8d32b5fd8d65ea05fd8565db14b19731ff63d944
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: http://svn.tartarus.org/sgt/putty@9912 cda61777-01e9-0310-a592-d414129be87e
pscp.c
psftp.c