aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/cc/cc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/cc/cc.c')
-rw-r--r--sys/cmd/cc/cc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/cmd/cc/cc.c b/sys/cmd/cc/cc.c
index d7bb12c..2a61e89 100644
--- a/sys/cmd/cc/cc.c
+++ b/sys/cmd/cc/cc.c
@@ -155,10 +155,12 @@ freeio(Io *io)
if (io->kind & IOfile) {
io·close(io->f);
}
- io->kind = 0;
- io->link = nil;
- io->path = nil;
- io->store = (Pos){ 0 };
+
+ io->buf.state = 0;
+ io->kind = 0;
+ io->link = nil;
+ io->path = nil;
+ io->store = (Pos){ 0 };
}
void