From: Pierangelo Masarati Date: Fri, 9 Aug 2002 13:50:29 +0000 (+0000) Subject: remove warnings X-Git-Tag: NO_SLAP_OP_BLOCKS~1255 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3996936bf75035bf966f24578c380acf57e8c1c7;p=openldap remove warnings --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 6ef822190e..c00f542546 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -141,7 +141,7 @@ usage( const char *prog ) 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; diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 836752f257..d991a9a97d 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -185,7 +185,7 @@ main( int argc, char **argv ) 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; @@ -900,7 +900,7 @@ main( int argc, char **argv ) 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;