backport recent changes from the cvs head
[openssl.git] / crypto / store / str_meth.c
index 648c08d76d814867ae63ae0c6429ca11e833283f..a46de03a2600c4b5d3dff7aa55f6da832d471cf1 100644 (file)
@@ -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;
        }