diff options
| author | Dmitry Stogov <dmitry@php.net> | 2011-12-22 15:33:48 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2011-12-22 15:33:48 +0000 |
| commit | 0e563dfa93f9c1927fabf699676abf23a98549ea (patch) | |
| tree | 748bd14e898fe51c82c6f02ef3a2798f5728cd7e /main/streams/userspace.c | |
| parent | cef0d27af947072371b79467246944490db92bf7 (diff) | |
| download | php-git-0e563dfa93f9c1927fabf699676abf23a98549ea.tar.gz | |
Initialize structure (some fields may be missed in array returned from user handler).
Diffstat (limited to 'main/streams/userspace.c')
| -rw-r--r-- | main/streams/userspace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/streams/userspace.c b/main/streams/userspace.c index e10c63ce54..10f3b3d404 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); |
