forked from e16/e16
1
0
Fork 0

use a proper check for XOpenDisplay() return

SVN revision: 22154
This commit is contained in:
Mike Frysinger 2006-04-16 04:13:18 +00:00
parent 059259ac82
commit 09cd5fd217
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ main(int argc, char **argv)
y = 0;
pagenum = 0;
if ((int)(disp = XOpenDisplay(NULL)) < 1)
if ((disp = XOpenDisplay(NULL)) == NULL)
{
printf("%s: Cannot open X display.\n", argv[0]);
exit(0);