* 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
@ -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>
|
Mon May 21 12:44:11 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||||
|
|
||||||
* .travis.yml (install): It seems tcl/tk is skipped in Travis
|
* .travis.yml (install): It seems tcl/tk is skipped in Travis
|
||||||
|
@ -315,6 +315,8 @@ static VALUE mSyslog_inspect(VALUE self)
|
|||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
|
||||||
|
Check_Type(self, T_MODULE);
|
||||||
|
|
||||||
if (syslog_opened) {
|
if (syslog_opened) {
|
||||||
snprintf(buf, sizeof(buf),
|
snprintf(buf, sizeof(buf),
|
||||||
"<#%s: opened=true, ident=\"%s\", options=%d, facility=%d, mask=%d>",
|
"<#%s: opened=true, ident=\"%s\", options=%d, facility=%d, mask=%d>",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user