aboutsummaryrefslogtreecommitdiff
path: root/src/lib9pclient/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9pclient/fs.c')
-rw-r--r--src/lib9pclient/fs.c5
1 files changed, 5 insertions, 0 deletions
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;
}