aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/proc.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-08-28 23:26:40 -0400
committerRuss Cox <rsc@golang.org>2014-08-28 23:26:40 -0400
commit597b266eafe7d63e9be8da1c1b4813bd2998a11c (patch)
treef69c69d422577069105676724f78c582ae582650 /src/pkg/runtime/proc.c
parentde7fea0d6161c876fca0b0293be3ac6f3e29a759 (diff)
downloadgo-597b266eafe7d63e9be8da1c1b4813bd2998a11c.tar.xz
runtime: convert print.c to Go
LGTM=iant R=golang-codereviews, iant CC=dvyukov, golang-codereviews, khr, r https://golang.org/cl/135930043
Diffstat (limited to 'src/pkg/runtime/proc.c')
-rw-r--r--src/pkg/runtime/proc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c
index 8263202e93..194928373c 100644
--- a/src/pkg/runtime/proc.c
+++ b/src/pkg/runtime/proc.c
@@ -1648,8 +1648,9 @@ goexit0(G *gp)
gp->paniconfault = 0;
gp->defer = nil; // should be true already but just in case.
gp->panic = nil; // non-nil for Goexit during panic. points at stack-allocated data.
- gp->writenbuf = 0;
- gp->writebuf = nil;
+ gp->writebuf.array = nil;
+ gp->writebuf.len = 0;
+ gp->writebuf.cap = 0;
gp->waitreason.str = nil;
gp->waitreason.len = 0;
gp->param = nil;