repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 7913a32fe55420d83165134360a244fea02bfa1f: path_to: revision_to:
commit 7913a32fe55420d83165134360a244fea02bfa1f Author: Marc LehmannDate: Tue Feb 19 18:58:05 2008 +0000 *** empty log message *** diff --git a/src/rxvtd.C b/src/rxvtd.C
--- a/src/rxvtd.C
+++ b/src/rxvtd.C
@@ -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);
-----END OF PAGE-----