int
main( int argc, char **argv )
{
- char *infile, *rejfile, *rbuf, *start, *rejbuf;
+ char *infile, *rejfile, *rbuf, *start, *rejbuf = NULL;
FILE *fp, *rejfp;
char *matched_msg = NULL, *error_msg = NULL;
int rc, i, authmethod, version, want_bindpw, debug, manageDSAit, referrals;
int authmethod, version, want_bindpw;
LDAP *ld = NULL;
int valuesReturnFilter;
- BerElement *ber;
+ BerElement *ber = NULL;
struct berval *bvalp = NULL;
char *vrFilter = NULL, *control = NULL, *s;
return EXIT_FAILURE;
}
- if ( err = ldap_put_vrFilter(ber, vrFilter)==-1 ) {
+ if ( ( err = ldap_put_vrFilter( ber, vrFilter ) ) == -1 ) {
ber_free( ber, 1 );
fprintf( stderr, "Bad ValuesReturnFilter: %s\n", vrFilter );
return EXIT_FAILURE;