aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term/9term.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-06-25 23:50:32 +0000
committerrsc <devnull@localhost>2006-06-25 23:50:32 +0000
commit98df7c80d83005ec6e4403a13014451c5dbfae3e (patch)
treed5895f2d7024e5d00b068ccf84a895e743a68df0 /src/cmd/9term/9term.c
parentbe3e97dcf86cf20f19ee0adbef00acd3971118bc (diff)
downloadplan9port-98df7c80d83005ec6e4403a13014451c5dbfae3e.tar.gz
plan9port-98df7c80d83005ec6e4403a13014451c5dbfae3e.tar.bz2
plan9port-98df7c80d83005ec6e4403a13014451c5dbfae3e.zip
check initdraw return
Diffstat (limited to 'src/cmd/9term/9term.c')
-rw-r--r--src/cmd/9term/9term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
index ec54ca3f..1610d0d4 100644
--- a/src/cmd/9term/9term.c
+++ b/src/cmd/9term/9term.c
@@ -90,7 +90,9 @@ threadmain(int argc, char *argv[])
startdir = ".";
- initdraw(derror, fontname, "9term");
+ if(initdraw(derror, fontname, "9term") < 0)
+ sysfatal("initdraw: %r");
+
notify(hangupnote);
noteenable("sys: child");