]> source.dussan.org Git - tigervnc.git/commitdiff
Fix pointer initialization to prevent NULL events. 41/head 42/head
authorBrian P. Hinz <bphinz@users.sf.net>
Sat, 27 Sep 2014 02:02:47 +0000 (22:02 -0400)
committerBrian P. Hinz <bphinz@users.sf.net>
Mon, 29 Sep 2014 23:47:25 +0000 (19:47 -0400)
Moved call to initEventq() into InitInputDevice() to prevent NULL events from being passed in.  The surrounding IFDEF explains why Red Hat BZ bug #820443 just went away, EL6 bumped the version of xorg-x11-server-source to 1.13 at EL6.4.

unix/xserver/hw/vnc/Input.cc

index 16fb90070a1380953abb2f69f9200788c23089f2..3aae5dbf52c166a9215348774211d351f05b52ff 100644 (file)
@@ -126,10 +126,6 @@ InputDevice::InputDevice()
 
        vncInputDevice = this;
 
-#if XORG < 111
-       initEventq();
-#endif
-
        for (i = 0;i < 256;i++)
                pressedKeys[i] = NoSymbol;
 }
@@ -360,6 +356,10 @@ void InputDevice::InitInputDevice(void)
                FatalError("Failed to activate TigerVNC devices\n");
 #endif /* 17 */
 
+#if XORG < 111
+       initEventq();
+#endif
+
        PrepareInputDevices();
 }