]> asedeno.scripts.mit.edu Git - PuTTY.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)
commit779466f0b0089b7d7b35d7acd39498d57d62a539
tree272840d3b0e887aef284fc84ce65505c54d0f1e4
parent84fed5c62014bd3825b46ee3acdf4ff559eda1d2
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.

[originally from svn r9912]
pscp.c
psftp.c