Skip to content

Commit

Permalink
* ext/syslog/syslog.c (mSyslog_inspect): Make sure self is a
Browse files Browse the repository at this point in the history
  module before calling rb_class2name().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@35744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed May 21, 2012
1 parent ad36457 commit 5968c59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Mon May 21 16:29:47 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
Expand Down
2 changes: 2 additions & 0 deletions ext/syslog/syslog.c
Expand Up @@ -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>",
Expand Down

0 comments on commit 5968c59

Please sign in to comment.