From: Kurt Zeilenga Date: Thu, 1 Jul 1999 04:39:42 +0000 (+0000) Subject: s/NULL/'\0'/ where appropriate X-Git-Tag: OPENLDAP_REL_ENG_2_BP~207 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=341e3681d651917dfa8f3071c8ddec22c4e80c4a;p=openldap s/NULL/'\0'/ where appropriate --- diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index 815d10e583..72d550df2f 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -73,8 +73,8 @@ main( int argc, char **argv ) { char* p; - for( p = optarg; *p == NULL; p++ ) { - *p = 'X'; + for( p = optarg; *p == '\0'; p++ ) { + *p = '*'; } } break; diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 37acfd6a0a..dc150e31f0 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -162,8 +162,8 @@ main( int argc, char **argv ) { char* p; - for( p = optarg; *p == NULL; p++ ) { - *p = 'X'; + for( p = optarg; *p == '\0'; p++ ) { + *p = '*'; } } break; diff --git a/clients/tools/ldapmodrdn.c b/clients/tools/ldapmodrdn.c index 897196dd1e..a3571863ad 100644 --- a/clients/tools/ldapmodrdn.c +++ b/clients/tools/ldapmodrdn.c @@ -93,8 +93,8 @@ main(int argc, char **argv) { char* p; - for( p = optarg; *p == NULL; p++ ) { - *p = 'X'; + for( p = optarg; *p == '\0'; p++ ) { + *p = '*'; } } break; diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 02470392ac..3d48a2d2c5 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -517,8 +517,8 @@ main (int argc, char *argv[]) { char* p; - for( p = optarg; *p == NULL; p++ ) { - *p = 'X'; + for( p = optarg; *p == '\0'; p++ ) { + *p = '*'; } } break; diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index ebb837d6f0..54e4b24429 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -197,8 +197,8 @@ main( int argc, char **argv ) { char* p; - for( p = optarg; *p == NULL; p++ ) { - *p = 'X'; + for( p = optarg; *p == '\0'; p++ ) { + *p = '*'; } } break;