From: Hallvard Furuseth Date: Wed, 1 Sep 1999 05:14:42 +0000 (+0000) Subject: Initialize rc X-Git-Tag: TWEB_OL_BASE~57 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=553b40e6f858c39eb5888f4752a319e7f805241e;p=openldap Initialize rc --- diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index 4eab6b1489..319a2de41f 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -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' ) {