summaryrefslogtreecommitdiff
path: root/ext/syslog
diff options
context:
space:
mode:
Diffstat (limited to 'ext/syslog')
-rw-r--r--ext/syslog/syslog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/syslog/syslog.c b/ext/syslog/syslog.c
index f4c45df..a0b3ed3 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>",