From: Kurt Zeilenga Date: Fri, 3 May 2002 19:00:52 +0000 (+0000) Subject: fix uninitialized counter in matched values X-Git-Tag: OPENLDAP_REL_ENG_2_MP~103 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d39e1e67244b70d0e10893e623dd5afdd9f207b;p=openldap fix uninitialized counter in matched values --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 1f88150e9a..4e10755101 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -731,7 +731,7 @@ send_search_entry( * to particular value of attribute an equals 1 if value matches * to ValuesReturnFilter or 0 if not */ - for ( a = e->e_attrs; a != NULL; a = a->a_next ) i++; + for ( a = e->e_attrs, i=0; a != NULL; a = a->a_next ) i++; e_flags = ch_malloc ( i * sizeof(a_flags) ); for ( a = e->e_attrs, i=0; a != NULL; a = a->a_next, i++ ) {