runtime: Initialize variable to avoid compiler warning.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Jun 2014 00:36:38 +0000 (00:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Jun 2014 00:36:38 +0000 (00:36 +0000)
From-SVN: r211394

libgo/runtime/chan.c

index cd3a2c5..2ef78eb 100644 (file)
@@ -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;