]> git.sur5r.net Git - openldap/commitdiff
fix uninit'ed vars (ITS#7039)
authorPierangelo Masarati <ando@OpenLDAP.org>
Thu, 8 Sep 2011 21:31:21 +0000 (23:31 +0200)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 2 Nov 2011 21:22:07 +0000 (14:22 -0700)
clients/tools/ldapmodify.c

index 2d11045114f3b1d48eccec3a526d354588a32ded..54dd37912036259db873706f78f27aa1a9776ab3 100644 (file)
@@ -903,8 +903,8 @@ parse_ldif_control(
        char *s, *oidStart;
        LDAPControl *newctrl = NULL;
        LDAPControl **pctrls = NULL;
-       struct berval type, bv;
-       int freeval;
+       struct berval type, bv = BER_BVNULL;
+       int freeval = 0;
 
        if (ppctrls) pctrls = *ppctrls;
        /* OID should come first. Validate and extract it. */