From: Kurt Zeilenga Date: Thu, 9 Mar 2000 19:15:48 +0000 (+0000) Subject: Fix calloc typo X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3159 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=000c1ca40b08f768afe8af767cc5892ab41ef483;p=openldap Fix calloc typo --- diff --git a/servers/slapd/oc.c b/servers/slapd/oc.c index 0f978b1a4a..a8997bc779 100644 --- a/servers/slapd/oc.c +++ b/servers/slapd/oc.c @@ -297,8 +297,8 @@ oc_add_sups( sups1++; } nsups++; - soc->soc_sups = (ObjectClass **)ch_calloc(1, - nsups*sizeof(ObjectClass *)); + soc->soc_sups = (ObjectClass **)ch_calloc(nsups, + sizeof(ObjectClass *)); } nsups = 0; sups1 = sups;