]> diplodocus.org Git - nmh/commit
Add macro NEW0(p) that callocs, and use it in simple calls.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 17:49:32 +0000 (18:49 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 17:49:32 +0000 (18:49 +0100)
commit81c57383273bb818858b2d7e6fdb4bbdb5df70d7
treea9f91b79357403c8d45c9bf4492ad9c5d2816b65
parent34f0ab116ad7734e96127d3cd046861a5c82c11c
Add macro NEW0(p) that callocs, and use it in simple calls.
p is a pointer, the size of the contents of the pointer is allocated
with calloc via mh_xcalloc.  It saves having to check every calloc to
ensure the space requested matches the pointer to which it is assigned.
13 files changed:
h/utils.h
sbr/addrsbr.c
sbr/datetime.c
sbr/fmt_compile.c
sbr/icalparse.y
uip/ap.c
uip/fmttest.c
uip/mhbuildsbr.c
uip/mhfixmsg.c
uip/mhlsbr.c
uip/mhparse.c
uip/picksbr.c
uip/scansbr.c