From: Julio Sánchez Fernández Date: Wed, 16 Jun 1999 12:31:18 +0000 (+0000) Subject: Make sure print_numericoid always returns with a value. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~297 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=64d018c35726be0bf90e95aff1fb3999f7b1939e;p=openldap Make sure print_numericoid always returns with a value. Remove some lint. --- diff --git a/libraries/libldap/schema.c b/libraries/libldap/schema.c index 9bbb878787..2a9d3ec32f 100644 --- a/libraries/libldap/schema.c +++ b/libraries/libldap/schema.c @@ -126,6 +126,8 @@ print_numericoid(safe_string *ss, char *s) { if ( s ) return(append_to_safe_string(ss,s)); + else + return(append_to_safe_string(ss,"")); } /* This one is identical to print_qdescr */ @@ -747,7 +749,6 @@ static char * parse_noidlen(const char **sp, int *code, int *len, int allow_quoted) { char * sval; - int kind; int quoted = 0; *len = 0;