Permalink
Browse files

robustification: Postfix traversals used uninitialized response varia…

…ble. Bug wasn't trigged by the current codebase though
  • Loading branch information...
1 parent 2c2446e commit b796d6c554c67146cc37f347a3909c7d129cad4e @kintel kintel committed Oct 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/traverser.cc
View
@@ -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());

0 comments on commit b796d6c

Please sign in to comment.