summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/fmt/print.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/fmt/print.go b/src/lib/fmt/print.go
index 05e208764..12da7d69d 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 = "<nil>"
} else {
s = "0x" + p.fmt.uX64(uint64(v)).str()