cmd/gc: replace NULL by nil

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 <minux@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
David du Colombier 2015-02-13 22:24:41 +01:00
parent ae3229ae5c
commit ad73dc349b
1 changed files with 1 additions and 1 deletions

View File

@ -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.