]> granicus.if.org Git - php/commitdiff
- fail when no known op are given
authorPierre Joye <pajoye@php.net>
Thu, 20 Jan 2011 06:58:04 +0000 (06:58 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 20 Jan 2011 06:58:04 +0000 (06:58 +0000)
ext/com_dotnet/com_variant.c

index 882100af6258582f7ac6d13c9c12ea263b075fd5..fd08aeb224bbda4b6a16a7d35f0a0749b608c44c 100644 (file)
@@ -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)) {