From 3f6ad23578466c67542dbeb0d9f8a726853b8345 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 14 Jun 2014 15:19:31 -0400 Subject: [PATCH] Parser - ::findBinary removes unnecessarily lexed sub-branches. --- src/Parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Parser.cpp b/src/Parser.cpp index 15a6dcf98..a52409baa 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -258,6 +258,7 @@ void Parser::findBinary () if (_tree->_branches.size () >= 1) { _tree->_branches[0]->unTag ("?"); + _tree->_branches[0]->removeAllBranches (); _tree->_branches[0]->tag ("BINARY"); std::string binary = _tree->_branches[0]->attribute ("raw"); std::string::size_type slash = binary.rfind ('/');