ITS#10436 Fix sometimes uninitialised variables

This commit is contained in:
Ondřej Kuzník 2026-01-30 12:41:59 +00:00 committed by Quanah Gibson-Mount
parent 3fff1e7256
commit 7e10a4a62f
2 changed files with 1 additions and 3 deletions

View file

@ -2016,7 +2016,7 @@ meta_send_entry(
Entry ent = { 0 };
BerElement ber = *ldap_get_message_ber( e );
Attribute *attr, **attrp;
LDAPControl **res_ctrls;
LDAPControl **res_ctrls = NULL;
struct berval bdn,
dn = BER_BVNULL;
const char *text;

View file

@ -1504,7 +1504,6 @@ out:
int slap_sasl_regexp_config( const char *match, const char *replace, int valx )
{
int i, rc;
SaslRegexp_t sr;
struct rewrite_info *rw = NULL;
if ( valx < 0 || valx > nSaslRegexp )
@ -1529,7 +1528,6 @@ int slap_sasl_regexp_config( const char *match, const char *replace, int valx )
SaslRegexp[i] = SaslRegexp[i - 1];
}
SaslRegexp[i] = sr;
SaslRegexp[i].sr_match = ch_strdup( match );
SaslRegexp[i].sr_replace = ch_strdup( replace );