1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:44:48 -07:00

cmd/gc: replace NULL by nil

In CL 3964, NULL was used instead of nil.
However, Plan 9 doesn't declare NULL.

Change-Id: Ied3850aca5c8bca5974105129a37d575df33f6ec
Reviewed-on: https://go-review.googlesource.com/5150
Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
David du Colombier 2015-02-18 08:25:30 +01:00
parent 3a0fbfab57
commit 2bcfe8b935

View File

@ -140,8 +140,8 @@ closurename(Node *n)
if(n->sym != S)
return n->sym;
gen = 0;
outer = NULL;
prefix = NULL;
outer = nil;
prefix = nil;
if(n->outerfunc == N) {
// Global closure.
outer = "glob";