From: Alexander Barton Date: Fri, 4 Nov 2011 23:21:19 +0000 (+0100) Subject: Init_Server_Struct(): correctly zero Server->bind_addr X-Git-Tag: rel-19-rc1~124 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=1ea681161652c118d7acb7932678e1acf6646611;p=ngircd.git Init_Server_Struct(): correctly zero Server->bind_addr Don't use the size of the pointer, use the size of the variable! --- diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 97634af9..dccc9c7a 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -2048,7 +2048,7 @@ Init_Server_Struct( CONF_SERVER *Server ) Proc_InitStruct(&Server->res_stat); Server->conn_id = NONE; - memset(&Server->bind_addr, 0, sizeof(&Server->bind_addr)); + memset(&Server->bind_addr, 0, sizeof(Server->bind_addr)); } /* -eof- */