diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/syslog/syslog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/syslog/syslog.c b/ext/syslog/syslog.c index f4c45dfbe4..a0b3ed3af7 100644 --- a/ext/syslog/syslog.c +++ b/ext/syslog/syslog.c @@ -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>", |