summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-21 15:46:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-21 15:46:44 +0000
commit4dcdbb4afcd99ce20dc7fd46dc712cf7ff25a36e (patch)
tree8517f77620967012557a034982b7791c761b8c7f /ext
parent8676596d12412c6163ceffb01f04dd8b695c3353 (diff)
downloadruby-4dcdbb4afcd99ce20dc7fd46dc712cf7ff25a36e.tar.gz
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')
-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 1964314484..a76d3fc184 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");