diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-04 11:51:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-04 11:52:07 +1000 |
commit | aa5b2b64e541ff7ca3f0a2bdb11d1c20624c406a (patch) | |
tree | 1be2e09beb883f8e0d3592dca3738bb098f14fb5 /tools | |
parent | 575616521aeffb002c4b41de1e77da5c251ee4af (diff) |
synclient: XCloseDisplay doesn't like NULL-pointers.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/synclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |