]> 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 cb22f04fe5d9a7511769d171f3615a8a521ea5a5..bac3722b9d56312e705c418967d6dedba6eab0c2 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)) {