mirror of
https://github.com/php/php-src.git
synced 2024-11-26 19:33:55 +08:00
fix segfault
This commit is contained in:
parent
ad85444a87
commit
c0f04cc087
@ -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)=='/') {
|
||||
|
Loading…
Reference in New Issue
Block a user