]> diplodocus.org Git - nmh/commit
Replace add(foo, NULL) with mh_xstrdup(foo).
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 27 Aug 2017 11:13:39 +0000 (12:13 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 27 Aug 2017 11:13:39 +0000 (12:13 +0100)
commit9e4dbc2d5379b96a8d90e28cf8fce803d6cc1ff4
tree613b1022ab3c74ff65d250d2a893caf69f7754ec
parent2fc70e8bf64ead869fce76abb74f04bf1af94923
Replace add(foo, NULL) with mh_xstrdup(foo).

add()'s arguments are back to front so add(foo, bar) produces bar+foo in
the normal case.  Thus add(foo, NULL) is read as the jarring NULL+foo.
Removing the NULL with mh_xstrdup() avoids this.  FENDNULL is used when
it isn't obvious foo can't be NULL as add() treats it as "" in that
case.
sbr/m_mktemp.c
uip/aliasbr.c
uip/mhbuildsbr.c
uip/mhlsbr.c
uip/mhparse.c
uip/mhshowsbr.c
uip/mhstoresbr.c