]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapsearch.c
Rework saslRegex code (not yet tested)
[openldap] / clients / tools / ldapsearch.c
index 0b3393e3c63a47c552c6a2c4beb08cfa8a481f3b..836752f257d26f1903cda0ea33c7404b441ecc12 100644 (file)
@@ -186,7 +186,7 @@ main( int argc, char **argv )
        LDAP            *ld = NULL;
        int             valuesReturnFilter;
        BerElement      *ber;
-       struct berval   *bvalp;
+       struct berval   *bvalp = NULL;
        char    *vrFilter  = NULL, *control  = NULL, *s;
 
 
@@ -890,7 +890,6 @@ main( int argc, char **argv )
                }
 
                if ( valuesReturnFilter ) {
-                       struct berval *bvalp;
                        ctrls[i++]=&c2;
                        ctrls[i] = NULL;