summaryrefslogtreecommitdiff
path: root/ext/win32ole
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-21 15:46:44 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-21 15:46:44 (GMT)
commit4dcdbb4afcd99ce20dc7fd46dc712cf7ff25a36e (patch)
tree8517f77620967012557a034982b7791c761b8c7f /ext/win32ole
parent8676596d12412c6163ceffb01f04dd8b695c3353 (diff)
win32ole.c: fix symbol condition
* ext/win32ole/win32ole.c (fole_missing): fix symbol condition, rb_check_symbol returns Qnil when the symbol is not interned. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole')
-rw-r--r--ext/win32ole/win32ole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c
index 1964314..a76d3fc 100644
--- a/ext/win32ole/win32ole.c
+++ b/ext/win32ole/win32ole.c
@@ -3283,7 +3283,7 @@ fole_missing(int argc, VALUE *argv, VALUE self)
rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS);
mid = argv[0];
sym = rb_check_symbol(&mid);
- if (sym) mid = rb_sym2str(sym);
+ if (!NIL_P(sym)) mid = rb_sym2str(sym);
mname = StringValueCStr(mid);
if(!mname) {
rb_raise(rb_eRuntimeError, "fail: unknown method or property");