3
0
Fork 0
forked from mirrors/nixpkgs

libredirect: allow null paths

This commit is contained in:
michael bishop 2017-05-24 11:29:06 -03:00
parent 65477dcd34
commit 5677ce2008
No known key found for this signature in database
GPG key ID: C294FC1A485A409A

View file

@ -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;