wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 7b0ecf7cf8afc9e9af5fcbd7817c49c8c73657cb
parent 9fd22b12f92298b6c2fb6a5503bb54cae90ea7cd
Author: Kris Maglione <jg@suckless.org>
Date:   Tue, 20 Feb 2007 20:37:16 -0500

Fixed a but on walk where fid == newfid.

Diffstat:
fs.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/fs.c b/fs.c @@ -536,14 +536,14 @@ fs_walk(P9Req *r) { /* If Fids were ref counted, this could be * done in their decref function */ if(r->ifcall.fid == r->ifcall.newfid) { - nf=r->fid->aux; + nf = r->fid->aux; r->fid->aux = f; - while((nf = f)) { - f=f->next; - free_file(nf); + while((f = nf)) { + nf = nf->next; + free_file(f); } - } - r->newfid->aux = f; + }else + r->newfid->aux = f; r->ofcall.nwqid = i; respond(r, nil); }