From: Kurt Zeilenga Date: Tue, 15 Aug 2000 21:59:18 +0000 (+0000) Subject: Split a = b = c statement to remove warnings (errors) from picking compilers X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2247 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=146f9d7ddfabb66aed5585d084a8cf6ce84f54b2;p=openldap Split a = b = c statement to remove warnings (errors) from picking compilers --- 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++ ) { /*