Skip to content

Commit

Permalink
Drop further superfluous assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Jan 27, 2025
1 parent e0836e5 commit adebef9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ext/com_dotnet/com_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ PHP_COM_DOTNET_API void php_com_wrap_dispatch(zval *z, IDispatch *disp,
obj = emalloc(sizeof(*obj));
memset(obj, 0, sizeof(*obj));
obj->code_page = codepage;
obj->zo.ce = php_com_variant_class_entry;

VariantInit(&obj->v);
V_VT(&obj->v) = VT_DISPATCH;
Expand All @@ -71,7 +70,6 @@ PHP_COM_DOTNET_API void php_com_wrap_variant(zval *z, VARIANT *v,
obj = emalloc(sizeof(*obj));
memset(obj, 0, sizeof(*obj));
obj->code_page = codepage;
obj->zo.ce = php_com_variant_class_entry;

VariantInit(&obj->v);
VariantCopyInd(&obj->v, v);
Expand Down

0 comments on commit adebef9

Please sign in to comment.