]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/store/str_meth.c
Remove /* foo.c */ comments
[thirdparty/openssl.git] / crypto / store / str_meth.c
index 74878197f9d24e07d15e26fa80a4a43e3c9f1526..95fd36659bef793f4fd9a545f5f857370c671f4e 100644 (file)
@@ -1,4 +1,3 @@
-/* crypto/store/str_meth.c -*- mode:C; c-file-style: "eay" -*- */
 /*
  * Written by Richard Levitte (richard@levitte.org) for the OpenSSL project
  * 2003.
 
 STORE_METHOD *STORE_create_method(char *name)
 {
-    STORE_METHOD *store_method = OPENSSL_malloc(sizeof(*store_method));
+    STORE_METHOD *store_method = OPENSSL_zalloc(sizeof(*store_method));
 
-    if (store_method) {
-        memset(store_method, 0, sizeof(*store_method));
-        store_method->name = BUF_strdup(name);
-    }
+    if (store_method != NULL)
+        store_method->name = OPENSSL_strdup(name);
     return store_method;
 }