Closed rukai closed 5 years ago
This could have been causing UB when using mem::uninitialized() on an XEvent. I'm not sure how unions handle such things...
mem::uninitialized()
XEvent
Regardless this value was clearly meant to be a Bool. https://www.x.org/releases/current/doc/man/man3/XF86VM.3.xhtml
Bool
Thanks! With all the structs written by hand, it's no wonder that something slipped through the cracks.
This could have been causing UB when using
mem::uninitialized()
on anXEvent
. I'm not sure how unions handle such things...Regardless this value was clearly meant to be a
Bool
. https://www.x.org/releases/current/doc/man/man3/XF86VM.3.xhtml