]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Init_Server_Struct(): correctly zero Server->bind_addr
authorAlexander Barton <alex@barton.de>
Fri, 4 Nov 2011 23:21:19 +0000 (00:21 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 4 Nov 2011 23:21:19 +0000 (00:21 +0100)
Don't use the size of the pointer, use the size of the variable!

src/ngircd/conf.c

index 97634af919e609259922d82138208afb4f8043ec..dccc9c7a27929feae79206f0038d738218f9c19f 100644 (file)
@@ -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- */