]> git.sur5r.net Git - openldap/commitdiff
Initialize rc
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 1 Sep 1999 05:14:42 +0000 (05:14 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 1 Sep 1999 05:14:42 +0000 (05:14 +0000)
clients/tools/ldapdelete.c

index 4eab6b14894cb801b9426cdabda0ae15bbb97c03..319a2de41f812cb6c78eca8c01b1d09cb08bf955 100644 (file)
@@ -194,12 +194,12 @@ main( int argc, char **argv )
                }
        }
 
+       rc = 0;
     if ( fp == NULL ) {
        for ( ; optind < argc; ++optind ) {
            rc = dodelete( ld, argv[ optind ] );
        }
     } else {
-       rc = 0;
        while ((rc == 0 || contoper) && fgets(buf, sizeof(buf), fp) != NULL) {
            buf[ strlen( buf ) - 1 ] = '\0';    /* remove trailing newline */
            if ( *buf != '\0' ) {