Browse Source

vmware: initialize vmware_mouse_byte or it resolves incorrectly by linker

K. Lange 3 months ago
parent
commit
046ec9538f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/vmware.c

+ 1 - 1
modules/vmware.c

@@ -140,7 +140,7 @@ static void mouse_absolute(void) {
 	vmware_send(&cmd);
 }
 
-volatile int8_t vmware_mouse_byte;
+volatile int8_t vmware_mouse_byte = 0;
 
 static void vmware_mouse(void) {
 	/* unused, but we need to read the fake mouse event bytes from the PS/2 device. */