mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 03:54:30 +00:00
dixRegisterPrivateKey() assumes that DevPrivateKeyRec struct passed to it is zero-filled before the first use, otherwise assert() fails. Therefore these structs are usually static, which assures that they are initialized to 0. A newly introduced key in the modesetting driver was not static, and the driver crashed. This should be corrected. Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>