fix potential NULL dereferencing (detected by Coverity)

This commit is contained in:
Pierangelo Masarati 2007-06-20 23:44:43 +00:00
parent 848ea293a3
commit 35282bc713

View file

@ -194,7 +194,7 @@ syn_add(
for ( cnt = 0; def->sd_sups[cnt] != NULL; cnt++ )
;
ssyn->ssyn_sups = (Syntax **)SLAP_CALLOC( cnt + 1,
ssyn->ssyn_sups = (Syntax **)ch_calloc( cnt + 1,
sizeof(Syntax) );
for ( cnt = 0; def->sd_sups[cnt] != NULL; cnt++ ) {