From 146f9d7ddfabb66aed5585d084a8cf6ce84f54b2 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 15 Aug 2000 21:59:18 +0000 Subject: [PATCH] Split a = b = c statement to remove warnings (errors) from picking compilers --- servers/slapd/schema_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index b40b742ea5..814004e67c 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -541,7 +541,8 @@ IA5StringConvert( struct berval *bv = ch_malloc( sizeof(struct berval) ); bv->bv_len = len * sizeof( ldap_unicode_t ); - bv->bv_val = (char *) u = ch_malloc( bv->bv_len + sizeof(ldap_unicode_t) ); + u = (ldap_unicode_t *) ch_malloc( bv->bv_len + sizeof(ldap_unicode_t) ); + bv->bv_val = (char *) u; for(i=0; i < len; i++ ) { /* -- 2.39.5