]> git.sur5r.net Git - openldap/commitdiff
Don't use initializers for auto vars.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 20 Jan 1999 01:00:12 +0000 (01:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 20 Jan 1999 01:00:12 +0000 (01:00 +0000)
clients/tools/ldappasswd.c

index 26a621c98826d13bcb59f24b5071aaff758c1b50..b45d13361579d54434a168d9cbe8f27d0ef1f068 100644 (file)
@@ -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++)