X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fstore%2Fstr_meth.c;h=a46de03a2600c4b5d3dff7aa55f6da832d471cf1;hb=71fc9b37aedb0ee7e664fba53696a11d0b879dd7;hp=648c08d76d814867ae63ae0c6429ca11e833283f;hpb=ed5fae580e88ce5612be3152ba739a208c61fcdd;p=oweals%2Fopenssl.git 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; }