From 9e735985d42368de01fbef63af713cb8675bdffa Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 30 Jan 2009 16:31:26 -0800 Subject: [PATCH] avoid memcpy(x, x), which valgrind complains about. R=ken OCL=23990 CL=23990 --- src/cmd/gc/walk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index 24a3a39c27..6e959b8c7a 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -170,7 +170,7 @@ loop: void indir(Node *nl, Node *nr) { - if(nr != N) + if(nr != N && nl != nr) *nl = *nr; }