forked from rsc/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue: fix nil pointer dereference on plumb error
plumbserve() fails with a nil pointer dereferrence when it tries to print errors via w.Err(). This happens because w is a dummy window with a nil *acme.Win. This commit replaces w.Err() calls in plumbserve() with log.Printf(). It also extracts the plumbserve() method out of *awin, given that the previous change removes this dependency. Fixes issue rsc#5.
- Loading branch information
1 parent
7a65b24
commit 62d3705
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters