]> diplodocus.org Git - nmh/commit
Add FENDNULL(s): fends off NULL by giving an empty string instead.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 13 May 2017 12:13:18 +0000 (13:13 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 13 May 2017 12:13:18 +0000 (13:13 +0100)
commit042f5bed7ff3e5b34ff3166951a7b98bf6bbf105
tree4fc7830c4eaf283df6d1b0b5b73da08b99e74c5b
parent01b844b7e61d6537be3f75acc1a747ed4fda206f
Add FENDNULL(s): fends off NULL by giving an empty string instead.

Use it in place of all the `foo->bar_xyzzy ? foo->bar_xyzzy : ""'.
Avoids the reader having to check first two of the ternary operands are
the same.
22 files changed:
config/config.c
h/mh.h
mts/smtp/smtp.c
sbr/addrsbr.c
sbr/context_del.c
sbr/context_find.c
sbr/context_replace.c
sbr/fmt_compile.c
sbr/mf.c
sbr/mime_type.c
sbr/seq_print.c
uip/ali.c
uip/fmttest.c
uip/folder.c
uip/mhbuildsbr.c
uip/mhfixmsg.c
uip/mhlistsbr.c
uip/mhlsbr.c
uip/mhparam.c
uip/mhshowsbr.c
uip/post.c
uip/replsbr.c