From 64d018c35726be0bf90e95aff1fb3999f7b1939e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Wed, 16 Jun 1999 12:31:18 +0000 Subject: [PATCH] Make sure print_numericoid always returns with a value. Remove some lint. --- libraries/libldap/schema.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5