From ababfedb66691a754c181a89f16363c1c9d6c21f Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Mon, 25 Nov 2002 22:53:57 +0000 Subject: [PATCH] tmp_line was possible uninitialised, resulting in crap error messages. --- ext/standard/ftp_fopen_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index a824812f58..5b9da1c8bb 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -150,6 +150,8 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch char *tpath, *ttpath, *hoststart=NULL; size_t file_size = 0; + tmp_line[0] = '\0'; + if (strchr(mode, 'a') || strchr(mode, '+')) { php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "FTP does not support simultaneous read/write connections."); return NULL; -- 2.50.1