Make sure that gcry_realloc (NULL, n) works on all platforms.
authorWerner Koch <wk@gnupg.org>
Fri, 1 Apr 2011 08:16:31 +0000 (10:16 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 1 Apr 2011 08:16:31 +0000 (10:16 +0200)
commit934d270ff8193a5931b143ce850f66f50d03dedf
treebf80b5ebadafa34805e1323ca67f50001fa4ea67
parentec033383618c4b3739783d31ca4dc70c9bb4fcfe
Make sure that gcry_realloc (NULL, n) works on all platforms.

realloc (NULL, n) shall behave exactly like malloc (n)
and realloc (p, 0) like free.

Not all platforms implement this correctly thus we now handle this
directly in gcry_realloc.
src/ChangeLog
src/global.c