From 3273b3f5feace0bb8f5f84e1e0bd924cdc866a54 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 19 Nov 2010 14:47:30 -0800 Subject: fix existence check in "syntax" when builtin expression is used. --- src/cstore/cstore-varref.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cstore/cstore-varref.cpp b/src/cstore/cstore-varref.cpp index 02bdb97..ac80ba2 100644 --- a/src/cstore/cstore-varref.cpp +++ b/src/cstore/cstore-varref.cpp @@ -238,7 +238,9 @@ Cstore::VarRef::getValue(string& value, vtw_type_e& def_type) } if (_paths[i].second == ERROR_TYPE && !_cstore->cfgPathExists(_paths[i].first, _active)) { - // path doesn't exist + // path doesn't exist => empty string + added[""] = true; + result.push_back(""); continue; } if (_paths[i].second != ERROR_TYPE) { -- cgit v1.2.3