]> git.sur5r.net Git - openldap/commitdiff
Fix undefined attributetype initializer
authorHoward Chu <hyc@openldap.org>
Fri, 6 May 2005 09:47:18 +0000 (09:47 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 6 May 2005 09:47:18 +0000 (09:47 +0000)
servers/slapd/schema_prep.c

index f3dcc051c12ed3d223ca8a7cd895b3c052fdf069..c22c935a9856c691cf433ebcb43edaa04e310c37 100644 (file)
@@ -1009,12 +1009,13 @@ static AttributeType slap_at_undefined = {
        { "1.1.1", NULL, NULL, 1, NULL,
                NULL, NULL, NULL, NULL,
                0, 0, 0, 1, 3, NULL }, /* LDAPAttributeType */
-       { sizeof("UNDEFINED")-1, "UNDEFINED" }, /* cname */
+       BER_BVC("UNDEFINED"), /* cname */
        NULL, /* sup */
        NULL, /* subtypes */
        NULL, NULL, NULL, NULL, /* matching rules routines */
        NULL, /* syntax (this may need to be defined) */
-       (AttributeTypeSchemaCheckFN *) 0, /* schema check function */
+       NULL, /* schema check function */
+       NULL, /* oidmacro */
        SLAP_AT_ABSTRACT|SLAP_AT_FINAL, /* mask */
        { NULL }, /* next */
        NULL /* attribute description */