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++)