ref: 4526b1a5dd7f9ecb5b0b472cc4bd6a41b05effcc
parent: 5771a6ccad47b6b79f5801937e6977778b8eea52
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon May 29 09:42:24 EDT 2023
rio: fix crash when walking windowless fid (thanks ilikebreadtoomuch)
--- a/sys/src/cmd/rio/fsys.c
+++ b/sys/src/cmd/rio/fsys.c
@@ -417,7 +417,8 @@
type = QTDIR;
qunlock(&all);
incref(w);
- sendp(winclosechan, f->w);
+ if(f->w)
+ sendp(winclosechan, f->w);
f->w = w;
dir = dirtab;
goto Accept;