]> git.cworth.org Git - sup/commit
Fix uninitialized @name member in person.rb.
authorCarl Worth <cworth@cworth.org>
Fri, 25 Sep 2009 20:41:06 +0000 (13:41 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 25 Sep 2009 20:42:19 +0000 (13:42 -0700)
commit3f69617ea17bf316cef829496834c56193dce2fb
treebb29f58b023ad6dea7f5429a549a66d651c36013
parent68898ee727a02712f6fd94efb489d9b616ef425e
Fix uninitialized @name member in person.rb.

Apparently a Person can be initialized with a nil name, (presumably
from a message where there's no name given), which before this commit
resulted in the following warning:

./lib/sup/person.rb:46: warning: instance variable @name not initialized

This warning was especially unpleasant since it appeared in the current
window, causing the terminal contents to incorrectly scroll up, (as
opposed to just appearing in the log or so).
lib/sup/person.rb