aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plot/libplot/machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/plot/libplot/machdep.c')
-rw-r--r--src/cmd/plot/libplot/machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/plot/libplot/machdep.c b/src/cmd/plot/libplot/machdep.c
index 4f60dccc..da7077aa 100644
--- a/src/cmd/plot/libplot/machdep.c
+++ b/src/cmd/plot/libplot/machdep.c
@@ -68,7 +68,8 @@ void m_initialize(char *s){
int dx, dy;
USED(s);
if(first){
- initdraw(0,0,"plot");
+ if(initdraw(0,0,"plot") < 0)
+ sysfatal("plot: can't open display: %r");
einit(Emouse);
clipminx=mapminx=screen->r.min.x+4;
clipminy=mapminy=screen->r.min.y+4;