]> git.sur5r.net Git - openldap/commitdiff
Split a = b = c statement to remove warnings (errors) from picking compilers
authorKurt Zeilenga <kurt@openldap.org>
Tue, 15 Aug 2000 21:59:18 +0000 (21:59 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 15 Aug 2000 21:59:18 +0000 (21:59 +0000)
servers/slapd/schema_init.c

index b40b742ea5623c914e1db06423a8a0f2a22b31f5..814004e67c362dd008bb35860a132ea54d5f9bc6 100644 (file)
@@ -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++ ) {
                /*