X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=crypt-mod.c;h=9a4355665f91050aeb02aebfed3d3229a159e43f;hp=c3281169454c173f27846dcac850eece88c164ba;hb=9114fccb27d817ba18918a84524e6e8b1998f361;hpb=74a2265af51ce89bca845adc1d68f273c9933c13 diff --git a/crypt-mod.c b/crypt-mod.c index c328116..9a43556 100644 --- a/crypt-mod.c +++ b/crypt-mod.c @@ -11,8 +11,9 @@ # 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; @@ -27,7 +28,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;