Remove redundant assignments to ftp->data

ftp_getdata() already does this.

Closes GH-12849.
This commit is contained in:
Niels Dossche 2023-12-02 14:29:10 +01:00
parent 35cf7abec7
commit f3cddbb831

View File

@ -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);