X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=crypt-mod.c;h=6a93bad069d54dd02fb9d3ef94880eafd4615e2f;hp=e8aaa6b84a7c088c8d3239ff15c518ebc11e0694;hb=8e037c67a88cb4680c4391134c578e3b55a80f8a;hpb=c3e57678c8be193fc137854020f3a90887be97c9 diff --git a/crypt-mod.c b/crypt-mod.c index e8aaa6b..6a93bad 100644 --- a/crypt-mod.c +++ b/crypt-mod.c @@ -11,7 +11,10 @@ # include "config.h" #endif +#include + #include "crypt-mod.h" +#include "lib/mem.h" /* A type an a variable to keep track of registered crypto modules. */ typedef struct crypt_module *crypt_module_t; @@ -26,7 +29,7 @@ static crypt_module_t modules; /* Register a new crypto module. */ void crypto_module_register (crypt_module_specs_t specs) { - crypt_module_t module_new = safe_malloc (sizeof (*module_new)); + crypt_module_t module_new = p_new(struct crypt_module, 1); module_new->specs = specs; module_new->next = modules;