From 9d39e1e67244b70d0e10893e623dd5afdd9f207b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 3 May 2002 19:00:52 +0000 Subject: [PATCH] fix uninitialized counter in matched values --- servers/slapd/result.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ ) { -- 2.39.5