From cf5a5fb3e38a10532f44c7ea36b46e3c59d5314c Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 19 Nov 2010 10:23:34 -0800 Subject: remove parser debug output and move existence check. --- src/cnode/cnode.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/cnode') diff --git a/src/cnode/cnode.cpp b/src/cnode/cnode.cpp index 697c89b..876e32e 100644 --- a/src/cnode/cnode.cpp +++ b/src/cnode/cnode.cpp @@ -113,15 +113,15 @@ CfgNode::CfgNode(Cstore& cstore, vector& path_comps, * "root", treat it as an intermediate node. */ if (path_comps.size() > 0) { - if (!cstore.cfgPathExists(path_comps, active)) { - // path doesn't exist - _exists = false; - return; - } - vtw_def def; if (cstore.validateTmplPath(path_comps, false, def)) { // got the def + if (!cstore.cfgPathExists(path_comps, active)) { + // path doesn't exist + _exists = false; + return; + } + _is_value = def.is_value; _is_tag = def.tag; _is_leaf = (!def.tag && def.def_type != ERROR_TYPE); -- cgit v1.2.3