check initdraw return
This commit is contained in:
parent
be3e97dcf8
commit
98df7c80d8
1 changed files with 3 additions and 1 deletions
|
|
@ -90,7 +90,9 @@ threadmain(int argc, char *argv[])
|
||||||
|
|
||||||
startdir = ".";
|
startdir = ".";
|
||||||
|
|
||||||
initdraw(derror, fontname, "9term");
|
if(initdraw(derror, fontname, "9term") < 0)
|
||||||
|
sysfatal("initdraw: %r");
|
||||||
|
|
||||||
notify(hangupnote);
|
notify(hangupnote);
|
||||||
noteenable("sys: child");
|
noteenable("sys: child");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue