]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
When asked to malloc zero bytes, malloc one byte instead. This ensures
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Sep 2005 20:17:10 +0000 (20:17 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Sep 2005 20:17:10 +0000 (20:17 +0000)
commit518f3e0070ea66e64f34c386fed10da66eb7ff26
tree6ead491f3c220f290465bee586917c05c13b905d
parent3d7d5409519e5a73f0452feeb47bf2effebd80c3
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: http://svn.tartarus.org/sgt/putty@6308 cda61777-01e9-0310-a592-d414129be87e
misc.c