wez Sat Mar 1 12:27:26 2003 EDT
Modified files:
/php4/main/streams plain_wrapper.c
Log:
Ensure that all fields are initialized to NULL.
Index: php4/main/streams/plain_wrapper.c
diff -u php4/main/streams/plain_wrapper.c:1.8 php4/main/streams/plain_wrapper.c:1.9
--- php4/main/streams/plain_wrapper.c:1.8 Thu Feb 27 20:47:28 2003
+++ php4/main/streams/plain_wrapper.c Sat Mar 1 12:27:23 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.8 2003/02/28 01:47:28 wez Exp $ */
+/* $Id: plain_wrapper.c,v 1.9 2003/03/01 17:27:23 wez Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -203,6 +203,7 @@
php_stream *stream;
self = emalloc_rel_orig(sizeof(*self));
+ memset(self, 0, sizeof(*self));
self->file = NULL;
self->is_pipe = 0;
self->lock_flag = LOCK_UN;
@@ -246,6 +247,7 @@
php_stream *stream;
self = emalloc_rel_orig(sizeof(*self));
+ memset(self, 0, sizeof(*self));
self->file = file;
self->is_pipe = 0;
self->lock_flag = LOCK_UN;
@@ -289,6 +291,7 @@
php_stream *stream;
self = emalloc_rel_orig(sizeof(*self));
+ memset(self, 0, sizeof(*self));
self->file = file;
self->is_pipe = 1;
self->lock_flag = LOCK_UN;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php