Skip to content
Snippets Groups Projects
Commit 553b40e6 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Initialize rc

parent 683ea591
Branches
Tags
No related merge requests found
......@@ -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' ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment