summaryrefslogtreecommitdiff
path: root/ext/win32ole/win32ole_type.c
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-03 21:08:55 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-03 21:08:55 +0000
commitf895ecdceec45c8213ec0fc1a0d8b75e11fb545d (patch)
tree58278c0285e1d001621e58116ab92c50d6ae2761 /ext/win32ole/win32ole_type.c
parent273af33537ae930fadf926182cff1289bed6189b (diff)
ext/win32ole/win32ole_method.c(olemethod_set_member): remove
redundant NULL check. ext/win32ole/win32ole_type.c(oletype_set_member): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/win32ole_type.c')
-rw-r--r--ext/win32ole/win32ole_type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole_type.c b/ext/win32ole/win32ole_type.c
index d2dbb3a..c5ae53c 100644
--- a/ext/win32ole/win32ole_type.c
+++ b/ext/win32ole/win32ole_type.c
@@ -188,7 +188,7 @@ oletype_set_member(VALUE self, ITypeInfo *pTypeInfo, VALUE name)
TypedData_Get_Struct(self, struct oletypedata, &oletype_datatype, ptype);
rb_ivar_set(self, rb_intern("name"), name);
ptype->pTypeInfo = pTypeInfo;
- if(pTypeInfo) OLE_ADDREF(pTypeInfo);
+ OLE_ADDREF(pTypeInfo);
return self;
}