]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/acme/cols.c
acme: fix fd checks - initialize Window.rdselfd to -1 not 0
[plan9front.git] / sys / src / cmd / acme / cols.c
index 386233d30ddef14c98f948bbd0ffb14dad325526..a5e0fbd2874c6e3223b416e7b2c5f78923cb43b8 100644 (file)
@@ -84,6 +84,7 @@ coladd(Column *c, Window *w, Window *clone, int y)
        }
        if(w == nil){
                w = emalloc(sizeof(Window));
+               w->rdselfd = -1;
                w->col = c;
                draw(screen, r, textcols[BACK], nil, ZP);
                wininit(w, clone, r);