]> granicus.if.org Git - php/commitdiff
initialize all fields of the struct (it's generally good idea even though they should...
authorAntony Dovgal <tony2001@php.net>
Fri, 21 Sep 2007 13:08:00 +0000 (13:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 21 Sep 2007 13:08:00 +0000 (13:08 +0000)
main/output.c

index 983f54f826f2b385520f28ec45a522c1493e26d6..5f36904c5ebcc67ea9cc8de7b2f0eebbe72e7021 100644 (file)
@@ -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;