From: Antony Dovgal Date: Fri, 21 Sep 2007 13:08:00 +0000 (+0000) Subject: initialize all fields of the struct (it's generally good idea even though they should... X-Git-Tag: php-5.2.5RC1~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5bf263b884f7bee8974c1a90408816e10b55045;p=php initialize all fields of the struct (it's generally good idea even though they should not be used) --- 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;