1
0
Fork 0
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/branches/ruby_1_9_2@35742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2012-05-21 07:28:54 +00:00
parent 2c2b8637c3
commit ccb34ee954
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon May 21 16:27:24 2012 Akinori MUSHA <knu@iDaemons.org>
* ext/syslog/syslog.c (mSyslog_inspect): Make sure self is a
module before calling rb_class2name().
Fri May 18 18:13:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (MakeMakefile#configuration): keep space at end of

View file

@ -164,6 +164,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>",