diff options
Diffstat (limited to 'ext/ftp')
-rw-r--r-- | ext/ftp/ftp.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index fce9ecf841..98ab0c8552 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -794,7 +794,6 @@ int ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, long resumepos TSRMLS_DC) { databuf_t *data = NULL; - int lastch; size_t rcvd; char arg[11]; @@ -832,7 +831,6 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, goto bail; } - lastch = 0; while ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { if (rcvd == -1) { goto bail; @@ -1191,12 +1189,9 @@ ftp_readline(ftpbuf_t *ftp) int ftp_getresp(ftpbuf_t *ftp) { - char *buf; - if (ftp == NULL) { return 0; } - buf = ftp->inbuf; ftp->resp = 0; while (1) { |