From: Mark Wooding Date: Sat, 9 Jun 2018 16:02:50 +0000 (+0100) Subject: chan.c (chan_open): Actually initialize the error indicator. X-Git-Tag: 1.3.8~2 X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/commitdiff_plain/755e6619263d316dc46fa504e0c333c963ec8eaa chan.c (chan_open): Actually initialize the error indicator. Thank you, valgrind, for spotting this. --- 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);