mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Initialize rc
This commit is contained in:
parent
683ea591f7
commit
553b40e6f8
@ -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' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user