From: Rob Pike Date: Wed, 10 Dec 2008 01:43:11 +0000 (-0800) Subject: fix historical editing glitch X-Git-Tag: weekly.2009-11-06~2543 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=436fcc68e0efde9ba6f4da4ce8b241187d3f5b48;p=gostls13.git fix historical editing glitch R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=20871 CL=20873 --- diff --git a/src/lib/fmt/print.go b/src/lib/fmt/print.go index 05e2087642..12da7d69dd 100644 --- a/src/lib/fmt/print.go +++ b/src/lib/fmt/print.go @@ -552,7 +552,7 @@ func (p *P) doprintf(format string, v reflect.StructValue) { // pointer case 'p': if v, ok := getPtr(field); ok { - if v == nil { + if v == 0 { s = "" } else { s = "0x" + p.fmt.uX64(uint64(v)).str()