Skip to content

Commit

Permalink
cmd/gc: replace NULL by nil
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
0intro committed Feb 18, 2015
1 parent 3a0fbfa commit 2bcfe8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/gc/closure.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 2bcfe8b

Please sign in to comment.