]> git.sur5r.net Git - openldap/commitdiff
uninitialized var
authorPierangelo Masarati <ando@openldap.org>
Wed, 14 Jul 2004 08:18:26 +0000 (08:18 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 14 Jul 2004 08:18:26 +0000 (08:18 +0000)
servers/slapd/result.c

index 9d1e2817e1211b47c0bf8a73d7ca1798f2db34e0..163b662631acb8df349913f324c4a25615bea10d 100644 (file)
@@ -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;