From: Marko Kreen Date: Wed, 23 Jan 2008 16:07:51 +0000 (+0000) Subject: do memset in pgsocket init due to slab changes X-Git-Tag: pgbouncer_1_2_rc2~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d224adaec65333bbe826d95e2ba0eef84b243ae;p=pgbouncer do memset in pgsocket init due to slab changes --- 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;