Skip to content

Commit bc6f270

Browse files
uninitialized local variable 'res' used
1 parent fcc0540 commit bc6f270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/com_dotnet/com_variant.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ PHP_METHOD(variant, __construct)
473473

474474
if((vt & VT_BYREF) && (vt & ~VT_BYREF != VT_VARIANT) && (vt & ~VT_BYREF != VT_PTR)) {
475475
spprintf(&msg, E_INVALIDARG, "VT_BYREF should be used alone or with VT_VARIANT or with VT_PTR");
476-
php_com_throw_exception(res, msg);
476+
php_com_throw_exception(E_INVALIDARG, msg);
477477
efree(msg);
478478
return;
479479
}

0 commit comments

Comments
 (0)