~kris/9p

9hist

2acb671fa0b58d3b8903d6e02737f7bbc5df0ca1 — David du Colombier 23 years ago 2a52163
Plan 9 from Bell Labs 2002-11-09
1 files changed, 1 insertions(+), 1 deletions(-)

M port/devmouse.c
M port/devmouse.c => port/devmouse.c +1 -1
@@ 124,7 124,7 @@ mousewalk(Chan *c, Chan *nc, char **name, int nname)
	Walkqid *wq;

	wq = devwalk(c, nc, name, nname, mousedir, nelem(mousedir), devgen);
	if(wq != nil && wq->clone != c && (wq->clone->qid.type&QTDIR)==0)
	if(wq != nil && wq->clone != c && wq->clone != nil && (wq->clone->qid.type&QTDIR)==0)
		incref(&mouse);
	return wq;
}