From 1d224adaec65333bbe826d95e2ba0eef84b243ae Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 23 Jan 2008 16:07:51 +0000 Subject: [PATCH] do memset in pgsocket init due to slab changes --- src/objects.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/objects.c b/src/objects.c index 78d9b1c..853abfe 100644 --- a/src/objects.c +++ b/src/objects.c @@ -67,6 +67,7 @@ static void construct_client(void *obj) { PgSocket *client = obj; + memset(client, 0, sizeof(PgSocket)); list_init(&client->head); sbuf_init(&client->sbuf, client_proto, client); client->state = CL_FREE; @@ -76,6 +77,7 @@ static void construct_server(void *obj) { PgSocket *server = obj; + memset(server, 0, sizeof(PgSocket)); list_init(&server->head); sbuf_init(&server->sbuf, server_proto, server); server->state = SV_FREE; -- 2.40.0