mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/syslog/syslog.c (mSyslog_inspect): Make sure self is a
module before calling rb_class2name(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9c14029fce
commit
1b84082a61
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon May 21 15:02:37 2012 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* ext/syslog/syslog.c (mSyslog_inspect): Make sure self is a
|
||||
module before calling rb_class2name().
|
||||
|
||||
Mon May 21 12:44:11 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* .travis.yml (install): It seems tcl/tk is skipped in Travis
|
||||
|
|
|
@ -315,6 +315,8 @@ static VALUE mSyslog_inspect(VALUE self)
|
|||
{
|
||||
char buf[1024];
|
||||
|
||||
Check_Type(self, T_MODULE);
|
||||
|
||||
if (syslog_opened) {
|
||||
snprintf(buf, sizeof(buf),
|
||||
"<#%s: opened=true, ident=\"%s\", options=%d, facility=%d, mask=%d>",
|
||||
|
|
Loading…
Add table
Reference in a new issue