Skip to content

Commit

Permalink
cmd/gc: replace NULL by nil
Browse files Browse the repository at this point in the history
In CL 4050, NULL was used instead of nil.
However, Plan 9 doesn't declare NULL.

Change-Id: I8295a3102509a1ce417278f23a37cbf65938cce1
Reviewed-on: https://go-review.googlesource.com/4814
Reviewed-by: Minux Ma <[email protected]>
Reviewed-by: Russ Cox <[email protected]>
  • Loading branch information
0intro committed Feb 13, 2015
1 parent ae3229a commit ad73dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/gc/walk.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ walkexpr(Node **np, NodeList **init)

// Append captured variables to argument list.
n->list = concat(n->list, n->left->enter);
n->left->enter = NULL;
n->left->enter = nil;
// Replace OCLOSURE with ONAME/PFUNC.
n->left = n->left->closure->nname;
// Update type of OCALLFUNC node.
Expand Down

0 comments on commit ad73dc3

Please sign in to comment.