plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 33baa59ecc75651b3666cef7a5b19eb91840d40c
parent 97e85ebf111b332229ad3698e48b635939543a19
Author: rsc <devnull@localhost>
Date:   Fri, 28 Jan 2005 05:41:12 +0000

better offset handling

Diffstat:
Msrc/lib9pclient/fs.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/lib9pclient/fs.c b/src/lib9pclient/fs.c @@ -259,6 +259,11 @@ _fsgetfid(CFsys *fs) fs->freefid = f->next; fs->ref++; qunlock(&fs->lk); + f->offset = 0; + f->mode = -1; + f->qid.path = 0; + f->qid.vers = 0; + f->qid.type = 0; return f; }