fix segfault

This commit is contained in:
Sterling Hughes 2003-03-26 23:01:39 +00:00
parent ad85444a87
commit c0f04cc087

View File

@ -490,7 +490,13 @@ PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char **
*/
PHPAPI char *php_strip_url_passwd(char *url)
{
register char *p = url, *url_start;
register char *p, *url_start;
if (url == NULL) {
return NULL;
}
p = url;
while (*p) {
if (*p==':' && *(p+1)=='/' && *(p+2)=='/') {