Commit 8b070ed1 authored by Pekka Pessi's avatar Pekka Pessi

tport_tls.c: su_home_new() already zeros the allocated memory

darcs-hash:20090105124209-db55f-0cbf1542b76117b8640148025de4320cf216e2b6.gz
parent 7e8db812
......@@ -128,7 +128,6 @@ static
tls_t *tls_create(int type)
{
tls_t *tls = su_home_new(sizeof(*tls));
memset(((void *)tls) + sizeof(su_home_t), 0, sizeof(*tls) - sizeof(su_home_t));
if (tls)
tls->type = type == tls_master ? tls_master : tls_slave;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment