Skip to content
Snippets Groups Projects
Commit c682e101 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

ISO C chokes on non-constant array initializers

parent f841c364
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment