(hx509_query_alloc): allocate slight more more then a sizeof(pointer)

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16820 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-03-27 02:07:05 +00:00
parent bd4424fb0e
commit bf2edb9716

View File

@@ -1385,7 +1385,7 @@ _hx509_query_clear(hx509_query *q)
int
hx509_query_alloc(hx509_context context, hx509_query **q)
{
*q = calloc(1, sizeof(*q));
*q = calloc(1, sizeof(**q));
if (*q == NULL)
return ENOMEM;
return 0;