robustification: Postfix traversals used uninitialized response variable. Bug wasn't trigged by the current codebase though

felipesanches-svg
Marius Kintel 2012-10-31 11:35:36 -04:00
parent 2c2446e7ba
commit b796d6c554
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ Response Traverser::traverse(const AbstractNode &node, const State &state)
State newstate = state;
newstate.setNumChildren(node.getChildren().size());
Response response;
Response response = ContinueTraversal;
if (traversaltype == PREFIX || traversaltype == PRE_AND_POSTFIX) {
newstate.setPrefix(true);
newstate.setParent(state.parent());