]> 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)
committerPierangelo Masarati <ando@OpenLDAP.org>
Thu, 8 Sep 2011 21:32:58 +0000 (23:32 +0200)
libraries/libldap/ldifutil.c

index 96b13c1131c7ba0a50b5e37d0963ed3c6e9b632d..5bef3eb3363fc2de744aaf17ccfe3f6e3e97881b 100644 (file)
@@ -582,8 +582,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. */