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/d03048946b96d9e255603ea49454f33cb71a420f?ds=inline;hp=d0656bf2442041891c2c67214c0a4637cbba9ce0 Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/scan.c b/uip/scan.c index d0534f48..c775db50 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -216,7 +216,7 @@ main (int argc, char **argv) if ((cp = context_find (usequence)) && *cp) { char **ap, *dp; - dp = getcpy(cp); + dp = mh_xstrdup(cp); ap = brkstring (dp, " ", "\n"); for (i = 0; ap && *ap; i++, ap++) ivector_push_back (seqnum, seq_getnum (mp, *ap));