diff options
author | rsc <devnull@localhost> | 2005-01-28 05:41:12 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-28 05:41:12 +0000 |
commit | 33baa59ecc75651b3666cef7a5b19eb91840d40c (patch) | |
tree | 8ff6b02e9001ac41e903441cc19ac79a300cfaff /src/lib9pclient | |
parent | 97e85ebf111b332229ad3698e48b635939543a19 (diff) | |
download | plan9port-33baa59ecc75651b3666cef7a5b19eb91840d40c.tar.gz plan9port-33baa59ecc75651b3666cef7a5b19eb91840d40c.tar.bz2 plan9port-33baa59ecc75651b3666cef7a5b19eb91840d40c.zip |
better offset handling
Diffstat (limited to 'src/lib9pclient')
-rw-r--r-- | src/lib9pclient/fs.c | 5 |
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; } |