diff --git a/jode/jode/flow/VariableStack.java b/jode/jode/flow/VariableStack.java index bc63a27..cfa4ee3 100644 --- a/jode/jode/flow/VariableStack.java +++ b/jode/jode/flow/VariableStack.java @@ -88,7 +88,8 @@ public class VariableStack { } Expression[] loads = new Expression[stackMap.length]; for (int i=0; i< stackMap.length; i++) { - used.addElement(stackMap[i]); + if (!used.contains(stackMap[i])) + used.addElement(stackMap[i]); loads[i] = new LocalLoadOperator(stackMap[i].getType(), stackMap[i]); }