diff options
author | rsc <devnull@localhost> | 2006-06-25 23:50:32 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-25 23:50:32 +0000 |
commit | 98df7c80d83005ec6e4403a13014451c5dbfae3e (patch) | |
tree | d5895f2d7024e5d00b068ccf84a895e743a68df0 /src/cmd/9term | |
parent | be3e97dcf86cf20f19ee0adbef00acd3971118bc (diff) | |
download | plan9port-98df7c80d83005ec6e4403a13014451c5dbfae3e.tar.gz plan9port-98df7c80d83005ec6e4403a13014451c5dbfae3e.tar.bz2 plan9port-98df7c80d83005ec6e4403a13014451c5dbfae3e.zip |
check initdraw return
Diffstat (limited to 'src/cmd/9term')
-rw-r--r-- | src/cmd/9term/9term.c | 4 |
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"); |