]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import auto init bug fix.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 20 Jan 1999 01:01:28 +0000 (01:01 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 20 Jan 1999 01:01:28 +0000 (01:01 +0000)
clients/tools/ldappasswd.c

index 03113bb3b7c1eaec4885feb1c8cbdd774ab4316c..02cd291e08b0ec1289e9c976fade1b825ddb43ad 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++)