From: Hallvard Furuseth Date: Wed, 6 Jul 2005 08:06:47 +0000 (+0000) Subject: ISO C chokes on non-constant array initializers X-Git-Tag: OPENLDAP_AC_BP~444 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c682e101ea8b9c1152aedca4dbbd8781d3f4706b;p=openldap ISO C chokes on non-constant array initializers --- diff --git a/tests/progs/slapd-modify.c b/tests/progs/slapd-modify.c index 301f01f1cc..37e45ec19e 100644 --- a/tests/progs/slapd-modify.c +++ b/tests/progs/slapd-modify.c @@ -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;