--- wterm-6.2.9/src/main.c 2001-08-17 06:47:41.000000000 +0200 +++ wterm-6.2.9.new/src/main.c 2008-05-03 14:44:43.000000000 +0200 @@ -1444,14 +1444,13 @@ /* * Open display, get options/resources and create the window */ - if ((display_name = getenv("DISPLAY")) == NULL) - display_name = ":0"; - get_options(argc, argv); Xdisplay = XOpenDisplay(display_name); if (!Xdisplay) { - print_error("can't open display %s", display_name); + print_error("can't open display %s", display_name?display_name: + getenv("DISPLAY")?getenv("DISPLAY"): + "as no -d given and DISPLAY not set"); exit(EXIT_FAILURE); } extract_resources(Xdisplay, rs_name);