summaryrefslogtreecommitdiff
path: root/main/streams
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2011-12-22 15:33:48 (GMT)
committerDmitry Stogov <dmitry@php.net>2011-12-22 15:33:48 (GMT)
commit0e563dfa93f9c1927fabf699676abf23a98549ea (patch)
tree748bd14e898fe51c82c6f02ef3a2798f5728cd7e /main/streams
parentcef0d27af947072371b79467246944490db92bf7 (diff)
downloadphp-0e563dfa93f9c1927fabf699676abf23a98549ea.tar.gz
Initialize structure (some fields may be missed in array returned from user handler).
Diffstat (limited to 'main/streams')
-rw-r--r--main/streams/userspace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/streams/userspace.c b/main/streams/userspace.c
index e10c63c..10f3b3d 100644
--- a/main/streams/userspace.c
+++ b/main/streams/userspace.c
@@ -886,6 +886,7 @@ static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC)
#define STAT_PROP_ENTRY(name) STAT_PROP_ENTRY_EX(name,name)
+ memset(ssb, 0, sizeof(php_stream_statbuf));
STAT_PROP_ENTRY(dev);
STAT_PROP_ENTRY(ino);
STAT_PROP_ENTRY(mode);