Initialize rc

This commit is contained in:
Hallvard Furuseth 1999-09-01 05:14:42 +00:00
parent 683ea591f7
commit 553b40e6f8

View 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' ) {