From: Pierre Joye Date: Thu, 20 Jan 2011 06:58:04 +0000 (+0000) Subject: - fail when no known op are given X-Git-Tag: php-5.4.0alpha1~191^2~335 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=739a870b0db78e84de75b3163ba6d23386f53dc4;p=php - fail when no known op are given --- diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c index 882100af62..fd08aeb224 100644 --- a/ext/com_dotnet/com_variant.c +++ b/ext/com_dotnet/com_variant.c @@ -755,6 +755,8 @@ static void variant_unary_operation(enum variant_unary_opcode op, INTERNAL_FUNCT case VOP_NOT: result = VarNot(vleft, &vres); break; + default: + result = E_INVALIDARG; } if (SUCCEEDED(result)) {