ref: 6a05b33c191ac376e4b1d9e50c1b938ddb1db4f2
parent: 7d681dd51f2f119c8b05eb6d89221d897aed93e5
author: qwx <>
date: Sun Sep 17 20:51:41 EDT 2017
in: fix read from uninitialized memory on startup
--- a/in.c
+++ b/in.c
@@ -202,6 +202,7 @@
if(fd < 0)
sysfatal("open /dev/kbd: %r");
memset(buf, 0, sizeof buf);
+ memset(kdown, 0, sizeof kdown);
evc.key = K_ENTER;
evc.down = true;
for(;;){