Crashes XSetDeviceFocus and probably everything else in XI that relies on
   d = getenv("DISPLAY");
   dpy = XOpenDisplay(d);

With this patch, the tests now change from UNRESOLVED to UNTESTED. Hooray.

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
Figuring out why getenv() returns garbage took longer than necessary... I
suspect there are a few more mines like this, but they're hard to spot given
that there seem to be more warnings than regular compiler output.

 xts5/src/lib/XInput.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xts5/src/lib/XInput.c b/xts5/src/lib/XInput.c
index eba66c5..067fca0 100644
--- a/xts5/src/lib/XInput.c
+++ b/xts5/src/lib/XInput.c
@@ -68,6 +68,7 @@ SOFTWARE.
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 #ifdef INPUTEXTENSION
 #include "X11/extensions/XIproto.h"
 #include "X11/extensions/XInput.h"
-- 
1.7.7.4
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to