]> arthur.barton.de Git - ngircd-alex.git/commitdiff
s/malloc(x*y)/calloc(x,y)/
authorFlorian Westphal <fw@strlen.de>
Sat, 16 Apr 2005 09:19:49 +0000 (09:19 +0000)
committerFlorian Westphal <fw@strlen.de>
Sat, 16 Apr 2005 09:19:49 +0000 (09:19 +0000)
src/ngircd/conn.c

index d334b16937082652a4bafcef780847a3f4776766..663ec6f8420bc4361c727d78a44af9f0ad76e10c 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.146 2005/03/20 13:54:06 fw Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.147 2005/04/16 09:19:49 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -121,7 +121,7 @@ Conn_Init( void )
                /* konfiguriertes Limit beachten */
                if( Pool_Size > Conf_MaxConnections ) Pool_Size = Conf_MaxConnections;
        }
-       My_Connections = (CONNECTION *)malloc( sizeof( CONNECTION ) * Pool_Size );
+       My_Connections = (CONNECTION *) calloc( Pool_Size,  sizeof( CONNECTION ) );
        if( ! My_Connections )
        {
                /* Speicher konnte nicht alloziert werden! */