summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_variant.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-01-20 06:54:28 +0000
committerPierre Joye <pajoye@php.net>2011-01-20 06:54:28 +0000
commit1e9faabe8e5fafd5b818b3afe86d1af8c5b90c71 (patch)
treeda83397da46951960e0dcdfba3afea191775481f /ext/com_dotnet/com_variant.c
parenteddf7586db86330c652e359bdb3f1b5a26771593 (diff)
downloadphp-git-1e9faabe8e5fafd5b818b3afe86d1af8c5b90c71.tar.gz
- fail when no known op are given
Diffstat (limited to 'ext/com_dotnet/com_variant.c')
-rw-r--r--ext/com_dotnet/com_variant.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c
index 43411be941..882100af62 100644
--- a/ext/com_dotnet/com_variant.c
+++ b/ext/com_dotnet/com_variant.c
@@ -593,6 +593,9 @@ static void variant_binary_operation(enum variant_binary_opcode op, INTERNAL_FUN
case VOP_XOR:
result = VarXor(vleft, vright, &vres);
break;
+ /*Let say it fails as no valid op has been given */
+ default:
+ result = E_INVALIDARG;
}
if (SUCCEEDED(result)) {