*** empty log message ***
authorroot <root>
Tue, 19 Feb 2008 18:58:05 +0000 (18:58 +0000)
committerroot <root>
Tue, 19 Feb 2008 18:58:05 +0000 (18:58 +0000)
src/rxvtd.C

index 543e2de124486ad4100097501d3113d1d7db7fc0..0d22a426a3412b3713b5542a946a67198dc4f643 100644 (file)
@@ -248,8 +248,10 @@ main (int argc, const char *const *argv)
         }
     }
 
+  // optionally open display and never release it.
   if (opt_opendisplay)
-    displays.get (getenv ("DISPLAY")); // open display and never release it
+    if (const char *dpy = getenv ("DISPLAY"))
+      displays.get (dpy ? dpy : ":0"); // move string logic into rxvt_display maybe?
 
   char *sockname = rxvt_connection::unix_sockname ();
   unix_listener l (sockname);