1
0
mirror of https://github.com/golang/go synced 2024-11-12 04:50:21 -07:00

avoid memcpy(x, x),

which valgrind complains about.

R=ken
OCL=23990
CL=23990
This commit is contained in:
Russ Cox 2009-01-30 16:31:26 -08:00
parent 6dd93bbfbc
commit 9e735985d4

View File

@ -170,7 +170,7 @@ loop:
void
indir(Node *nl, Node *nr)
{
if(nr != N)
if(nr != N && nl != nr)
*nl = *nr;
}