When asked to malloc zero bytes, malloc one byte instead. This ensures
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Sep 2005 20:17:10 +0000 (20:17 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Sep 2005 20:17:10 +0000 (20:17 +0000)
commit66ab14c717d6954a7fa5986c02b685271c6b5b64
tree6ead491f3c220f290465bee586917c05c13b905d
parent4afa6d8290c522a64507936e26f7b6fd2a3d7540
When asked to malloc zero bytes, malloc one byte instead.  This ensures
that we get a unique pointer rather than NULL (which ANSI C otherwise permits).
Problem pointed out by Mike Protts.

git-svn-id: svn://svn.tartarus.org/sgt/putty@6308 cda61777-01e9-0310-a592-d414129be87e
misc.c