From 553b40e6f858c39eb5888f4752a319e7f805241e Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 1 Sep 1999 05:14:42 +0000 Subject: [PATCH] Initialize rc --- clients/tools/ldapdelete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ) { -- 2.39.5