cvs: php4 /ext/standard ftp_fopen_wrapper.c
| From: | Stefan Esser | Date: | Mon, 25 Nov 2002 22:53:58 +0000 |
| Subject: | cvs: php4 /ext/standard ftp_fopen_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16644@lists.php.net to get a copy of this message | ||
sesser Mon Nov 25 17:53:58 2002 EDT
Modified files:
/php4/ext/standard ftp_fopen_wrapper.c
Log:
tmp_line was possible uninitialised, resulting in crap error messages.
Index: php4/ext/standard/ftp_fopen_wrapper.c
diff -u php4/ext/standard/ftp_fopen_wrapper.c:1.39 php4/ext/standard/ftp_fopen_wrapper.c:1.40
--- php4/ext/standard/ftp_fopen_wrapper.c:1.39 Mon Nov 25 17:00:52 2002
+++ php4/ext/standard/ftp_fopen_wrapper.c Mon Nov 25 17:53:57 2002
@@ -17,7 +17,7 @@
| Hartmut Holzgraefe <hholzgra@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: ftp_fopen_wrapper.c,v 1.39 2002/11/25 22:00:52 iliaa Exp $ */
+/* $Id: ftp_fopen_wrapper.c,v 1.40 2002/11/25 22:53:57 sesser Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -149,6 +149,8 @@
#endif
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.");