From: Pierangelo Masarati Date: Thu, 27 Feb 2003 09:52:47 +0000 (+0000) Subject: more hacks/comments for SLAP_NVALUES X-Git-Tag: NO_SLAP_OP_BLOCKS~261 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df5784062636b362bf7c2269a9072a02929ce5a5;p=openldap more hacks/comments for SLAP_NVALUES --- 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;