makes no sense to set an error handler which uses X_Dpy before XOpenDisplay.

This commit is contained in:
okan 2013-04-12 14:49:16 +00:00
parent 6296efadaa
commit b5f6bd205c

View File

@ -129,8 +129,6 @@ dpy_init(const char *dpyname)
{
int i;
XSetErrorHandler(x_errorhandler);
if ((X_Dpy = XOpenDisplay(dpyname)) == NULL)
errx(1, "unable to open display \"%s\"",
XDisplayName(dpyname));