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:
parent
6dd93bbfbc
commit
9e735985d4
@ -170,7 +170,7 @@ loop:
|
||||
void
|
||||
indir(Node *nl, Node *nr)
|
||||
{
|
||||
if(nr != N)
|
||||
if(nr != N && nl != nr)
|
||||
*nl = *nr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user