| commit | cf201ed6a00223e1e6dd69e884f9bcd25ce2b62c | [log] [tgz] |
|---|---|---|
| author | Graham Miller <graham.miller@gmail.com> | Mon Jun 20 15:42:17 2011 -0400 |
| committer | Russ Cox <rsc@golang.org> | Mon Jun 20 15:42:17 2011 -0400 |
| tree | 71e8455384288690fddebb43f543047871516e8e | |
| parent | c2784340a79767a6926d935826775c245173798e [diff] [blame] |
os: change Waitmsg String method to use pointer receiver Fixes #1851. R=rsc CC=golang-dev https://golang.org/cl/4628045
diff --git a/src/pkg/os/exec_plan9.go b/src/pkg/os/exec_plan9.go index 0598adc..2590dd6 100644 --- a/src/pkg/os/exec_plan9.go +++ b/src/pkg/os/exec_plan9.go
@@ -123,6 +123,9 @@ return newProcess(pid, 0), nil } -func (w Waitmsg) String() string { +func (w *Waitmsg) String() string { + if w == nil { + return "<nil>" + } return "exit status: " + w.Msg }