]> git.sur5r.net Git - openldap/commitdiff
Use err2txt for unknown error
authorKurt Zeilenga <kurt@openldap.org>
Tue, 6 Jun 2000 05:54:36 +0000 (05:54 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 6 Jun 2000 05:54:36 +0000 (05:54 +0000)
servers/slapd/schemaparse.c

index 99eaa3a5e18ce08ff8067a6249696871f927c924..2205e8741c9a578cc4adcd0b12b78b0c7c78ab67 100644 (file)
@@ -25,7 +25,7 @@ static void           oc_usage(void)     LDAP_GCCATTR((noreturn));
 static void            at_usage(void)     LDAP_GCCATTR((noreturn));
 
 static char *const err2text[] = {
-       "",
+       "Unknown Error",
        "Out of memory",
        "ObjectClass not found",
        "AttributeType not found",
@@ -44,7 +44,7 @@ char *
 scherr2str(int code)
 {
        if ( code < 1 || code >= (sizeof(err2text)/sizeof(char *)) ) {
-               return "Unknown error";
+               return err2text[0];
        } else {
                return err2text[code];
        }