From: Howard Chu Date: Wed, 9 Dec 2009 00:04:58 +0000 (+0000) Subject: ITS#6425 fix uninit'd vars X-Git-Tag: ACLCHECK_0~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12affea4acbcef0461b4564b464fe9f3119e2a7f;p=openldap ITS#6425 fix uninit'd vars --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 7d18ea23c1..02236b0bac 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -810,7 +810,7 @@ do_syncrep2( ldap_get_entry_controls( si->si_ld, msg, &rctrls ); /* we can't work without the control */ if ( rctrls ) { - LDAPControl **next; + LDAPControl **next = NULL; /* NOTE: make sure we use the right one; * a better approach would be to run thru * the whole list and take care of all */ @@ -998,7 +998,7 @@ do_syncrep2( si->si_ridtxt, err, ldap_err2string( err ) ); } if ( rctrls ) { - LDAPControl **next; + LDAPControl **next = NULL; /* NOTE: make sure we use the right one; * a better approach would be to run thru * the whole list and take care of all */