summaryrefslogtreecommitdiff
path: root/plugins/arm/v7/operands/shift.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/arm/v7/operands/shift.c')
-rw-r--r--plugins/arm/v7/operands/shift.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/arm/v7/operands/shift.c b/plugins/arm/v7/operands/shift.c
index 8da666e..a25f36c 100644
--- a/plugins/arm/v7/operands/shift.c
+++ b/plugins/arm/v7/operands/shift.c
@@ -263,6 +263,8 @@ static GArchOperand *g_armv7_shift_operand_get_inner_operand_from_path(const GAr
{
GArchOperand *result; /* Opérande trouvée à renvoyer */
+ result = NULL;
+
if (strncmp(path, "0", 1) == 0)
switch (path[1])
{
@@ -275,10 +277,6 @@ static GArchOperand *g_armv7_shift_operand_get_inner_operand_from_path(const GAr
result = g_arch_operand_get_inner_operand_from_path(operand->shift_value, path + 1);
break;
- default:
- result = NULL;
- break;
-
}
return result;