From f150ef3edd25c2c02531a751bc9c58704dad9503 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 9 Jan 2008 20:24:29 +0000 Subject: [PATCH] for ITS#5317: initialize exit code for -f/dev/null --- clients/tools/ldapsearch.c | 1 + 1 file changed, 1 insertion(+) 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'; -- 2.39.5