From aa5b2b64e541ff7ca3f0a2bdb11d1c20624c406a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 4 Mar 2009 11:51:53 +1000 Subject: synclient: XCloseDisplay doesn't like NULL-pointers. Signed-off-by: Peter Hutterer --- tools/synclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/synclient.c b/tools/synclient.c index ec6bc60..ff7292c 100644 --- a/tools/synclient.c +++ b/tools/synclient.c @@ -445,7 +445,7 @@ dp_init() unwind: XFree(v); - if (error) + if (error && dpy) { XCloseDisplay(dpy); dpy = NULL; -- cgit v1.2.3