summaryrefslogtreecommitdiff
path: root/src/cparse/cparse.ypp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cparse/cparse.ypp')
-rw-r--r--src/cparse/cparse.ypp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cparse/cparse.ypp b/src/cparse/cparse.ypp
index 6ce60d0..24abbad 100644
--- a/src/cparse/cparse.ypp
+++ b/src/cparse/cparse.ypp
@@ -53,8 +53,9 @@ add_node()
{
pcomps.push_back(nname);
CfgNode *onode = NULL;
- if (node_map.find(pcomps) != node_map.end()) {
- onode = node_map[pcomps];
+ map<vector<string>, CfgNode *>::iterator it = node_map.find(pcomps);
+ if (it != node_map.end()) {
+ onode = it->second;
}
pcomps.pop_back();
if (onode) {