From 33baa59ecc75651b3666cef7a5b19eb91840d40c Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 28 Jan 2005 05:41:12 +0000 Subject: better offset handling --- src/lib9pclient/fs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/lib9pclient/fs.c b/src/lib9pclient/fs.c index eda023bc..e51876c3 100644 --- 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; } -- cgit v1.2.3