mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 03:29:35 -05:00
changing a malloc to a calloc shouldn't change behavior, but
this change seems to causes test007 to fail on some systems (e.g., FreeBSD 4).
This commit is contained in:
parent
910076d26f
commit
0b331b8159
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ init_globals( void )
|
|||
{
|
||||
Globals *g;
|
||||
|
||||
g = ( Globals * ) malloc( sizeof( Globals ));
|
||||
g = ( Globals * ) calloc( 1, sizeof( Globals ));
|
||||
if ( g == NULL ) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue