diff options
author | Ryan Tandy <ryan@nardis.ca> | 2013-12-28 13:51:24 -0800 |
---|---|---|
committer | Ryan Tandy <ryan@nardis.ca> | 2013-12-28 13:51:24 -0800 |
commit | b08a8c02fbcb63712593fb3446b225c062b81d6a (patch) | |
tree | ddf2ecfc155ad284cbb70174dbb48cf5b06a8bc8 | |
parent | 43453108a6d53ecf724665ee5c353d2028f6021d (diff) | |
download | mirror-meh-b08a8c02fbcb63712593fb3446b225c062b81d6a.tar.gz mirror-meh-b08a8c02fbcb63712593fb3446b225c062b81d6a.tar.bz2 mirror-meh-b08a8c02fbcb63712593fb3446b225c062b81d6a.zip |
check return value of XOpenDisplay before using
-rw-r--r-- | src/xlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -173,8 +173,8 @@ static int xquit(Display *d){ void backend_init(){ display = XOpenDisplay (NULL); - xfd = ConnectionNumber(display); assert(display); + xfd = ConnectionNumber(display); screen = DefaultScreen(display); window = XCreateWindow(display, DefaultRootWindow(display), 0, 0, 640, 480, 0, DefaultDepth(display, screen), InputOutput, CopyFromParent, 0, NULL); |