buf_block_init(): Reset magic_n, buf_fix_count and io_fix to avoid

testing uninitialized variables.  (Bug #17405)
This commit is contained in:
marko 2006-02-16 07:27:54 +00:00
parent aa3995cb92
commit ddf4a2a86e

View file

@ -464,12 +464,17 @@ buf_block_init(
byte* frame) /* in: pointer to buffer frame, or NULL if in
the case of AWE there is no frame */
{
block->magic_n = 0;
block->state = BUF_BLOCK_NOT_USED;
block->frame = frame;
block->awe_info = NULL;
block->buf_fix_count = 0;
block->io_fix = 0;
block->modify_clock = ut_dulint_zero;
block->file_page_was_freed = FALSE;