mirror of
https://github.com/golang/go.git
synced 2024-09-29 14:26:50 +00:00
cc: drop redundant strcpy
Fixes #192. R=ken2 https://golang.org/cl/155047
This commit is contained in:
parent
139a053733
commit
b18bee948e
@ -419,8 +419,6 @@ lookup(void)
|
|||||||
s = alloc(sizeof(*s));
|
s = alloc(sizeof(*s));
|
||||||
s->name = alloc(n);
|
s->name = alloc(n);
|
||||||
memmove(s->name, symb, n);
|
memmove(s->name, symb, n);
|
||||||
|
|
||||||
strcpy(s->name, symb);
|
|
||||||
s->link = hash[h];
|
s->link = hash[h];
|
||||||
hash[h] = s;
|
hash[h] = s;
|
||||||
syminit(s);
|
syminit(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user