mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
C89 rejects ITS#5784 non-constant array init (backend.c 1.402,-controls.c 1.201)
This commit is contained in:
parent
6009dd4ec0
commit
753a6d0008
@ -946,7 +946,9 @@ backend_check_controls(
|
||||
if ( !op->o_bd->be_ctrls[cid] && (*ctrls)->ldctl_iscritical ) {
|
||||
#ifdef SLAP_CONTROL_X_WHATFAILED
|
||||
if ( get_whatFailed( op ) ) {
|
||||
char *oids[ 2 ] = { (*ctrls)->ldctl_oid, NULL };
|
||||
char *oids[ 2 ];
|
||||
oids[ 0 ] = (*ctrls)->ldctl_oid;
|
||||
oids[ 1 ] = NULL;
|
||||
slap_ctrl_whatFailed_add( op, rs, oids );
|
||||
}
|
||||
#endif
|
||||
|
@ -863,7 +863,9 @@ return_results:
|
||||
}
|
||||
|
||||
if ( get_whatFailed( op ) ) {
|
||||
char *oids[ 2 ] = { failed_oid, NULL };
|
||||
char *oids[ 2 ];
|
||||
oids[ 0 ] = failed_oid;
|
||||
oids[ 1 ] = NULL;
|
||||
slap_ctrl_whatFailed_add( op, rs, oids );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user