projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exit mem_realloc, enters p_realloc/xrealloc.
[apps/madmutt.git]
/
hook.c
diff --git
a/hook.c
b/hook.c
index
d665cb3
..
a3a25e3
100644
(file)
--- a/
hook.c
+++ b/
hook.c
@@
-22,7
+22,6
@@
#include "compress.h"
#endif
#include "compress.h"
#endif
-#include "lib/mem.h"
#include "lib/intl.h"
#include "lib/str.h"
#include "lib/rx.h"
#include "lib/intl.h"
#include "lib/str.h"
#include "lib/rx.h"
@@
-186,11
+185,11
@@
int mutt_parse_hook (BUFFER * buf, BUFFER * s, unsigned long data,
}
if (ptr) {
}
if (ptr) {
- ptr->next =
mem_calloc (1, sizeof (HOOK)
);
+ ptr->next =
p_new(HOOK, 1
);
ptr = ptr->next;
}
else
ptr = ptr->next;
}
else
- Hooks = ptr =
mem_calloc (1, sizeof (HOOK)
);
+ Hooks = ptr =
p_new(HOOK, 1
);
ptr->type = data;
ptr->command = command.data;
ptr->pattern = pat;
ptr->type = data;
ptr->command = command.data;
ptr->pattern = pat;