]> git.sur5r.net Git - openldap/commitdiff
ITS#1797 silence uninit'd var warnings
authorHoward Chu <hyc@openldap.org>
Sat, 4 May 2002 10:52:05 +0000 (10:52 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 4 May 2002 10:52:05 +0000 (10:52 +0000)
libraries/libldap/getdn.c

index 05c370bf8e18d0b4cc2589703b877e14f20cb61b..bec27bc7da976d604480652f8fc4f733f99e5bb1 100644 (file)
@@ -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;