Skip to content

Commit 4dcdbb4

Browse files
committed
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
1 parent 8676596 commit 4dcdbb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/win32ole/win32ole.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3283,7 +3283,7 @@ fole_missing(int argc, VALUE *argv, VALUE self)
32833283
rb_check_arity(argc, 1, UNLIMITED_ARGUMENTS);
32843284
mid = argv[0];
32853285
sym = rb_check_symbol(&mid);
3286-
if (sym) mid = rb_sym2str(sym);
3286+
if (!NIL_P(sym)) mid = rb_sym2str(sym);
32873287
mname = StringValueCStr(mid);
32883288
if(!mname) {
32893289
rb_raise(rb_eRuntimeError, "fail: unknown method or property");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy