From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:52:25 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5231493ca1103d6a26feb0e09d22936a3f69be3b?hp=58136b15d4b0a0f124a21055b6aa4217f1ace7e1 Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/new.c b/uip/new.c index 2304c1ef..dd173cc0 100644 --- a/uip/new.c +++ b/uip/new.c @@ -280,7 +280,7 @@ check_folders(struct node **first, struct node **last, while (vfgets(fp, &line) == OK) { len = strlen(line) - 1; line[len] = '\0'; - check_folder(getcpy(line), len, &b); + check_folder(mh_xstrdup(line), len, &b); } fclose(fp); }