mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ISO C chokes on non-constant array initializers
This commit is contained in:
parent
f841c364eb
commit
c682e101ea
1 changed files with 3 additions and 1 deletions
|
|
@ -148,10 +148,12 @@ do_modify( char *uri, char *host, int port, char *manager,
|
|||
|
||||
struct ldapmod mod;
|
||||
struct ldapmod *mods[2];
|
||||
char *values[2] = { value, NULL };
|
||||
char *values[2];
|
||||
|
||||
pid = getpid();
|
||||
|
||||
values[0] = value;
|
||||
values[1] = NULL;
|
||||
mod.mod_op = LDAP_MOD_ADD;
|
||||
mod.mod_type = attr;
|
||||
mod.mod_values = values;
|
||||
|
|
|
|||
Loading…
Reference in a new issue