mirror of
https://github.com/simh/simh.git
synced 2026-01-25 11:46:37 +00:00
display: Fix X11 crash when DISPLAY unset.
This commit is contained in:
@@ -272,6 +272,10 @@ ws_init(const char *crtname, /* crt type name */
|
||||
xpixels = xp; /* save screen size */
|
||||
ypixels = yp;
|
||||
|
||||
if (getenv ("DISPLAY") == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
XtToolkitInitialize();
|
||||
app_context = XtCreateApplicationContext();
|
||||
argc = 0;
|
||||
|
||||
Reference in New Issue
Block a user