mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
Remove redundant assignments to ftp->data
ftp_getdata() already does this. Closes GH-12849.
This commit is contained in:
parent
35cf7abec7
commit
f3cddbb831
@ -898,8 +898,6 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, const size_t pat
|
||||
goto bail;
|
||||
}
|
||||
|
||||
ftp->data = data;
|
||||
|
||||
if (resumepos > 0) {
|
||||
int arg_len = snprintf(arg, sizeof(arg), ZEND_LONG_FMT, resumepos);
|
||||
|
||||
@ -993,7 +991,6 @@ ftp_put(ftpbuf_t *ftp, const char *path, const size_t path_len, php_stream *inst
|
||||
if ((data = ftp_getdata(ftp)) == NULL) {
|
||||
goto bail;
|
||||
}
|
||||
ftp->data = data;
|
||||
|
||||
if (startpos > 0) {
|
||||
int arg_len = snprintf(arg, sizeof(arg), ZEND_LONG_FMT, startpos);
|
||||
|
Loading…
Reference in New Issue
Block a user