From: Kurt Zeilenga Date: Wed, 20 Jan 1999 01:00:12 +0000 (+0000) Subject: Don't use initializers for auto vars. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~736 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ed0ae4ef14ecdd4e998d4de0ac2e1d821e2d118a;p=openldap Don't use initializers for auto vars. --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 26a621c988..b45d133615 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -146,7 +146,10 @@ gen_pass (unsigned int len) const unsigned char autogen[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890.,"; int i; - Salt salt = {NULL, 0}; + Salt salt; + + salt.salt = NULL; + salt.len = 0; make_salt (&salt, len); for (i = 0; i < len; i++)