From 755e6619263d316dc46fa504e0c333c963ec8eaa Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 9 Jun 2018 17:02:50 +0100 Subject: [PATCH] chan.c (chan_open): Actually initialize the error indicator. Thank you, valgrind, for spotting this. --- chan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/chan.c b/chan.c index 5fbecb1..9aa42a5 100644 --- a/chan.c +++ b/chan.c @@ -240,6 +240,7 @@ void chan_open(chan *c, int from, int to, c->base = 0; c->len = 0; c->f = 0; + c->err = 0; sel_initfile(sel, &c->r, from, SEL_READ, readchan, c); sel_addfile(&c->r); -- 2.11.0