From f5bf263b884f7bee8974c1a90408816e10b55045 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 21 Sep 2007 13:08:00 +0000 Subject: [PATCH] initialize all fields of the struct (it's generally good idea even though they should not be used) --- main/output.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.50.1