]> git.sur5r.net Git - openldap/commitdiff
remove warnings
authorPierangelo Masarati <ando@openldap.org>
Fri, 9 Aug 2002 13:50:29 +0000 (13:50 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 9 Aug 2002 13:50:29 +0000 (13:50 +0000)
clients/tools/ldapmodify.c
clients/tools/ldapsearch.c

index 6ef822190edfce35aeac7de024321a6ce1f2348b..c00f542546e54d50b56311093863df4a1bb85557 100644 (file)
@@ -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;
index 836752f257d26f1903cda0ea33c7404b441ecc12..d991a9a97dfcd117b401d947c39fa1e87a4afab7 100644 (file)
@@ -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;