diff options
Diffstat (limited to 'crypto/store/str_meth.c')
-rw-r--r-- | crypto/store/str_meth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/store/str_meth.c b/crypto/store/str_meth.c index 648c08d76d..a46de03a26 100644 --- a/crypto/store/str_meth.c +++ b/crypto/store/str_meth.c @@ -65,8 +65,10 @@ STORE_METHOD *STORE_create_method(char *name) STORE_METHOD *store_method = (STORE_METHOD *)OPENSSL_malloc(sizeof(STORE_METHOD)); if (store_method) + { memset(store_method, 0, sizeof(*store_method)); - store_method->name = BUF_strdup(name); + store_method->name = BUF_strdup(name); + } return store_method; } |