From 7895cbd715476bb471e8261761e7a9452b7166c6 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Mon, 11 Sep 2017 18:25:20 +0100 Subject: [PATCH] path.c: Remove path()'s test for expath() returning NULL. All paths out of expath() have it calling mh_xstrdup(). --- sbr/path.c | 3 --- 1 file changed, 3 deletions(-) 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'; -- 2.56.0