From 12affea4acbcef0461b4564b464fe9f3119e2a7f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 9 Dec 2009 00:04:58 +0000 Subject: [PATCH] ITS#6425 fix uninit'd vars --- servers/slapd/syncrepl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5