]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - misc.c
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)
commitf2d8fd97d09cb2ef5f3bce495439060234dc36fd
tree6ead491f3c220f290465bee586917c05c13b905d
parent059e409c8279ac9d9755a24420579765fa52615e
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.

[originally from svn r6308]
misc.c