fix uninitialized counter in matched values

This commit is contained in:
Kurt Zeilenga 2002-05-03 19:00:52 +00:00
parent a352bcaa16
commit 9d39e1e672

View File

@ -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++ ) {