Merge pull request #26062 from cleverca22/libredirect
libredirect: allow null paths
Eelco Dolstra 8 years ago dc4e2cd7 601d8c3f
··· 47 47 48 48 static const char * rewrite(const char * path, char * buf) 49 49 { 50 50 + if (path == NULL) return path; 50 51 for (int n = 0; n < nrRedirects; ++n) { 51 52 int len = strlen(from[n]); 52 53 if (strncmp(path, from[n], len) != 0) continue;