From: Ralph Corderoy Date: Tue, 18 Oct 2016 12:37:14 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/92dd7b914b878f2172b4d436e9643c4a0d24683b Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/sbr/getarguments.c b/sbr/getarguments.c index 0f8834b7..e1b86388 100644 --- a/sbr/getarguments.c +++ b/sbr/getarguments.c @@ -20,7 +20,7 @@ getarguments (char *invo_name, int argc, char **argv, int check_context) * Check if profile/context specifies any arguments */ if (check_context && (cp = context_find (invo_name))) { - cp = getcpy (cp); /* make copy */ + cp = mh_xstrdup(cp); /* make copy */ ap = brkstring (cp, " ", "\n"); /* split string */ /* Count number of arguments split */