plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 98df7c80d83005ec6e4403a13014451c5dbfae3e
parent be3e97dcf86cf20f19ee0adbef00acd3971118bc
Author: rsc <devnull@localhost>
Date:   Sun, 25 Jun 2006 23:50:32 +0000

check initdraw return

Diffstat:
Msrc/cmd/9term/9term.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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");