diff options
author | michael bishop <cleverca22@gmail.com> | 2017-05-24 11:29:06 -0300 |
---|---|---|
committer | michael bishop <cleverca22@gmail.com> | 2017-05-24 11:29:06 -0300 |
commit | 5677ce200831a83a7b3d37f2cfc4ec00c1095bc5 (patch) | |
tree | f47869060b4cf3505b0834e5d5dc21855082821c /pkgs/build-support | |
parent | 65477dcd341dcdcdc58b01e362e18a903bf94874 (diff) |
libredirect: allow null paths
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/libredirect/libredirect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/libredirect/libredirect.c b/pkgs/build-support/libredirect/libredirect.c index ed0d5b0043d58..d1e8f77fb1f66 100644 --- a/pkgs/build-support/libredirect/libredirect.c +++ b/pkgs/build-support/libredirect/libredirect.c @@ -47,6 +47,7 @@ static void init() static const char * rewrite(const char * path, char * buf) { + if (path == NULL) return path; for (int n = 0; n < nrRedirects; ++n) { int len = strlen(from[n]); if (strncmp(path, from[n], len) != 0) continue; |