From dc5f95cd3edc219d3429c8434ed654c2a63f0811 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 14 Jul 2004 08:18:26 +0000 Subject: [PATCH] uninitialized var --- servers/slapd/result.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 9d1e2817e1..163b662631 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -311,7 +311,7 @@ send_ldap_response( long bytes; if ( op->o_callback ) { - int first; + int first = 1; slap_callback *sc = op->o_callback, *sc_next = op->o_callback; @@ -497,7 +497,7 @@ cleanup:; clean2:; if ( op->o_callback ) { - int first; + int first = 1; slap_callback *sc = op->o_callback, *sc_next = op->o_callback; @@ -787,7 +787,7 @@ slap_send_search_entry( Operation *op, SlapReply *rs ) rs->sr_type = REP_SEARCH; if ( op->o_callback ) { - int first; + int first = 1; slap_callback *sc = op->o_callback, *sc_next = op->o_callback; @@ -1404,7 +1404,7 @@ error_return:; } if ( op->o_callback ) { - int first; + int first = 1; slap_callback *sc = op->o_callback, *sc_next = op->o_callback; @@ -1453,7 +1453,7 @@ slap_send_search_reference( Operation *op, SlapReply *rs ) rs->sr_type = REP_SEARCHREF; if ( op->o_callback ) { - int first; + int first = 1; slap_callback *sc = op->o_callback, *sc_next = op->o_callback; @@ -1625,7 +1625,7 @@ slap_send_search_reference( Operation *op, SlapReply *rs ) rel: if ( op->o_callback ) { - int first; + int first = 1; slap_callback *sc = op->o_callback, *sc_next = op->o_callback; -- 2.39.5