From e8e78471751824a8089bce96189be118cd8d7fbc Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 4 May 2002 10:52:05 +0000 Subject: [PATCH] ITS#1797 silence uninit'd var warnings --- libraries/libldap/getdn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5