From 33ac36ef798dec9fb04e81829b209058522f6aa9 Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Mon, 29 Jul 2024 14:40:51 +0300 Subject: [PATCH] another regs init --- src/libc/pc_hw/co80/conio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libc/pc_hw/co80/conio.c b/src/libc/pc_hw/co80/conio.c index 342f132d..b0712470 100644 --- a/src/libc/pc_hw/co80/conio.c +++ b/src/libc/pc_hw/co80/conio.c @@ -260,11 +260,11 @@ static void setcursor(unsigned int cursor_shape) /* Sets the shape of the cursor */ { - __dpmi_regs reg; + __dpmi_regs regs = {}; - reg.h.ah = 1; - reg.x.cx = cursor_shape; - __dpmi_int(0x10, ®); + regs.h.ah = 1; + regs.x.cx = cursor_shape; + __dpmi_int(0x10, ®s); } /* setcursor */ static void