mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
redirected is set but never used
This commit is contained in:
parent
62c54fca9f
commit
140158734f
@ -85,7 +85,6 @@ php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, char *path, ch
|
||||
char *http_header_line = NULL;
|
||||
char tmp_line[128];
|
||||
size_t chunk_size = 0, file_size = 0;
|
||||
int redirected = 0;
|
||||
|
||||
resource = php_url_parse(path);
|
||||
if (resource == NULL)
|
||||
@ -304,7 +303,6 @@ php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, char *path, ch
|
||||
else {
|
||||
strlcpy(new_path, location, sizeof(new_path));
|
||||
}
|
||||
redirected = 1;
|
||||
stream = php_stream_url_wrap_http(NULL, new_path, mode, options, opened_path, context STREAMS_CC TSRMLS_CC);
|
||||
if (stream && stream->wrapperdata) {
|
||||
entryp = &entry;
|
||||
|
Loading…
Reference in New Issue
Block a user