From 708358cdb6b27f5bd0e179e36174f80d4349996c Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Tue, 13 Jul 2010 19:58:06 +0000 Subject: [PATCH] Initialize a variable before its use. --- sys/dev/fb/vesa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c index 2142578a8721..e0990cac973b 100644 --- a/sys/dev/fb/vesa.c +++ b/sys/dev/fb/vesa.c @@ -986,9 +986,9 @@ vesa_bios_init(void) x86bios_free(vmbuf, sizeof(*buf)); + vesa_state_buf_size = vesa_bios_state_buf_size(); vesa_palette = x86bios_alloc(&vesa_palette_offs, VESA_PALETTE_SIZE + vesa_state_buf_size, M_WAITOK); - vesa_state_buf_size = vesa_bios_state_buf_size(); if (vesa_state_buf_size > 0) { vesa_state_buf = vesa_palette + VESA_PALETTE_SIZE; vesa_state_buf_offs = vesa_palette_offs + VESA_PALETTE_SIZE;