]> git.sur5r.net Git - openldap/commitdiff
for ITS#5317: initialize exit code for -f/dev/null
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 9 Jan 2008 20:24:29 +0000 (20:24 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 9 Jan 2008 20:24:29 +0000 (20:24 +0000)
clients/tools/ldapsearch.c

index 8c0c1862ffb5aad5ae5be96ef061f94ec8eb2ee3..b82c71cc4943b69f69da5de7a527305a843df5e0 100644 (file)
@@ -981,6 +981,7 @@ getNextPage:
                        attrs, attrsonly, NULL, NULL, NULL, -1 );
 
        } else {
+               rc = 0;
                first = 1;
                while ( fgets( line, sizeof( line ), fp ) != NULL ) { 
                        line[ strlen( line ) - 1 ] = '\0';