diff options
| author | Antony Dovgal <tony2001@php.net> | 2007-09-21 13:08:00 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2007-09-21 13:08:00 +0000 |
| commit | f5bf263b884f7bee8974c1a90408816e10b55045 (patch) | |
| tree | 366fbdf9c7349375bee18af790e68a4e939ff3c5 /main/output.c | |
| parent | 3587185a89b552142e22c773e4826d4fa3de2e7c (diff) | |
| download | php-git-f5bf263b884f7bee8974c1a90408816e10b55045.tar.gz | |
initialize all fields of the struct (it's generally good idea even though they should not be used)
Diffstat (limited to 'main/output.c')
| -rw-r--r-- | main/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/output.c b/main/output.c index 983f54f826..5f36904c5e 100644 --- a/main/output.c +++ b/main/output.c @@ -430,6 +430,8 @@ static int php_ob_init_named(uint initial_size, uint block_size, char *handler_n tmp_buf.chunk_size = chunk_size; tmp_buf.status = 0; tmp_buf.internal_output_handler = NULL; + tmp_buf.internal_output_handler_buffer = NULL; + tmp_buf.internal_output_handler_buffer_size = 0; tmp_buf.handler_name = estrdup(handler_name&&handler_name[0]?handler_name:OB_DEFAULT_HANDLER_NAME); tmp_buf.erase = erase; |
