]> diplodocus.org Git - nmh/commitdiff
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)
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.


No differences found