ref: 675fb0a3bbeed7a21721d3579131798233773e74
parent: 6648b46b38a030f9fa6a2edb292f6ed1316e1bb2
author: kvik <kvik@a-b.xyz>
date: Sat May 9 23:18:57 EDT 2020
acme: add missed error checks
--- a/sys/src/cmd/acme/acme.c
+++ b/sys/src/cmd/acme/acme.c
@@ -167,7 +167,7 @@
cedit = chancreate(sizeof(int), 0);
cexit = chancreate(sizeof(int), 0);
cwarn = chancreate(sizeof(void*), 1);
- if(cwait==nil || ccommand==nil || ckill==nil || cxfidalloc==nil || cxfidfree==nil || cerr==nil || cexit==nil || cwarn==nil){+ if(cwait==nil || ccommand==nil || ckill==nil || cxfidalloc==nil || cxfidfree==nil || cnewwindow==nil || cerr==nil || cedit==nil || cexit==nil || cwarn==nil){fprint(2, "acme: can't create initial channels: %r\n");
threadexitsall("channels");}
--
⑨