1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:34:42 -07:00

gc: fix %N for OGOTO nodes.

6g -W crashed on any source with a goto. this fixes that.

R=rsc, r
CC=golang-dev
https://golang.org/cl/4675052
This commit is contained in:
Luuk van Dijk 2011-07-06 00:02:03 +02:00
parent eea5443572
commit 13d048a221

View File

@ -1124,7 +1124,7 @@ Sconv(Fmt *fp)
return 0;
}
if(s->pkg != localpkg || longsymnames || (fp->flags & FmtLong)) {
if(s->pkg && s->pkg != localpkg || longsymnames || (fp->flags & FmtLong)) {
// This one is for the user. If the package name
// was used by multiple packages, give the full
// import path to disambiguate.