aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/chan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/chan.c b/libgo/runtime/chan.c
index cd3a2c5..2ef78eb 100644
--- a/libgo/runtime/chan.c
+++ b/libgo/runtime/chan.c
@@ -481,7 +481,7 @@ _Bool runtime_chanrecv2(ChanType *t, Hchan* c, byte* v)
_Bool
runtime_chanrecv2(ChanType *t, Hchan* c, byte* v)
{
- bool received;
+ bool received = false;
chanrecv(t, c, v, true, &received);
return received;