From df5784062636b362bf7c2269a9072a02929ce5a5 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 27 Feb 2003 09:52:47 +0000 Subject: [PATCH] more hacks/comments for SLAP_NVALUES --- servers/slapd/slapi/slapi_utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index d17c893b4c..001ee20693 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -2287,6 +2287,9 @@ Slapi_Attr *slapi_attr_init( Slapi_Attr *a, const char *type ) a->a_desc = ad; a->a_vals = NULL; +#ifdef SLAP_NVALUES + a->a_nvals = NULL; +#endif a->a_next = NULL; a->a_flags = 0; @@ -2316,6 +2319,11 @@ Slapi_Attr *slapi_attr_dup( const Slapi_Attr *attr ) int slapi_attr_add_value( Slapi_Attr *a, const Slapi_Value *v ) { #ifdef LDAP_SLAPI +#ifdef SLAP_NVALUES + /* + * FIXME: here we may lose alignment between a_vals/a_nvals + */ +#endif return value_add_one( &a->a_vals, (Slapi_Value *)v ); #else return -1; -- 2.39.5