From: Hallvard Furuseth Date: Wed, 9 Jan 2008 20:24:29 +0000 (+0000) Subject: for ITS#5317: initialize exit code for -f/dev/null X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~229 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f150ef3edd25c2c02531a751bc9c58704dad9503;p=openldap for ITS#5317: initialize exit code for -f/dev/null --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 8c0c1862ff..b82c71cc49 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -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';