Commit 11aaf447 authored by Chong Yidong's avatar Chong Yidong
Browse files

* xterm.c (x_display_ok): Fix minor bug and compilation warnings.

parent e4d181dc
2006-03-18 Chong Yidong <cyd@stupidchicken.com>
* xterm.c (x_display_ok): Fix minor bug and compilation warnings.
2006-03-18 Nozomu Ando <nand@mac.com>
 
* m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
......
......@@ -10122,9 +10122,10 @@ x_display_ok (display)
{
int dpy_ok = 1;
Display *dpy;
char *display_name = display || getenv("DISPLAY");
if (!display_name)
if (!display)
display = getenv("DISPLAY");
if (!display)
return 0;
if ((dpy = XOpenDisplay (display)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment