From: Ralph Corderoy Date: Mon, 11 Sep 2017 17:25:20 +0000 (+0100) Subject: path.c: Remove path()'s test for expath() returning NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/7895cbd715476bb471e8261761e7a9452b7166c6 path.c: Remove path()'s test for expath() returning NULL. All paths out of expath() have it calling mh_xstrdup(). --- diff --git a/sbr/path.c b/sbr/path.c index 28d0e773..ecd2eb81 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -34,9 +34,6 @@ path(char *name, int flag) char *p, *last; p = expath(name, flag); - if (!p) - return NULL; - last = p + strlen(p) - 1; if (last > p && *last == '/') *last = '\0';