From: Kurt Zeilenga Date: Fri, 27 Aug 2004 17:54:18 +0000 (+0000) Subject: Fix init error X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~624 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a17c9ec50270577394b51b671448c4ae6d008659;p=openldap Fix init error --- diff --git a/tests/progs/slapd-modify.c b/tests/progs/slapd-modify.c index 449d1fc19e..b6398da203 100644 --- a/tests/progs/slapd-modify.c +++ b/tests/progs/slapd-modify.c @@ -131,12 +131,12 @@ do_modify( char *uri, char *host, int port, char *manager, int i; pid_t pid; - pid = getpid(); - struct ldapmod mod; struct ldapmod *mods[2]; char *values[2] = { value, NULL }; + pid = getpid(); + mod.mod_op = LDAP_MOD_ADD; mod.mod_type = attr; mod.mod_values = values;