From a7c223a2dc036f2ecb2c2045dd96237ca306a7a2 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Fri, 28 Aug 2009 12:03:11 +0000 Subject: [PATCH] Initialize eventq in all cases. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3885 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/xserver/hw/vnc/XserverDesktop.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc index d6fe9938..533f31bd 100644 --- a/unix/xserver/hw/vnc/XserverDesktop.cc +++ b/unix/xserver/hw/vnc/XserverDesktop.cc @@ -203,6 +203,8 @@ XserverDesktop::XserverDesktop(ScreenPtr pScreen_, eventq = (xEvent *) xcalloc(sizeof(xEvent), GetMaximumEventsNum()); if (!eventq) FatalError("Couldn't allocate eventq\n"); +#else + GetEventList(&eventq); #endif /* -- 2.39.5