From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:52:26 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/6840e8ab4e69caead96fced2ae896f778651d113?ds=inline;hp=3b2ca65d6c8ffd443caa93bf89b0f9b61d9a4919 Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/rcvdist.c b/uip/rcvdist.c index 7e70e3ea..a8231e91 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -89,7 +89,7 @@ main (int argc, char **argv) continue; } } - addrs = addrs ? add (cp, add (", ", addrs)) : getcpy (cp); + addrs = addrs ? add (cp, add (", ", addrs)) : mh_xstrdup(cp); } if (addrs == NULL)