From: Howard Chu Date: Sat, 4 May 2002 10:52:05 +0000 (+0000) Subject: ITS#1797 silence uninit'd var warnings X-Git-Tag: OPENLDAP_REL_ENG_2_MP~95 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8e78471751824a8089bce96189be118cd8d7fbc;p=openldap ITS#1797 silence uninit'd var warnings --- diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index 05c370bf8e..bec27bc7da 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -3321,10 +3321,10 @@ ldap_X509dn2bv( void *x509_name, struct berval *bv, LDAPDN_rewrite_func *func, X509_NAME_ENTRY *ne; ASN1_OBJECT *obj; ASN1_STRING *str; - char oids[8192], *oidptr = oids, *oidbuf; + char oids[8192], *oidptr = oids, *oidbuf = NULL; void *ptrs[2048]; - int i, j, k, navas, nrdns, rc = LDAP_SUCCESS; - int set = 0; + int i, j, k = 0, navas, nrdns, rc = LDAP_SUCCESS; + int set = -1; size_t dnsize, oidrem = sizeof(oids), oidsize = 0; int csize;