git: 9front

Download patch

ref: 09e7da4a60625bfec9a93ef7222bb73d2a48b8c0
parent: cd01b5e9ec73d404dd04ab62b652ca068e2ed835
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;
--