summaryrefslogtreecommitdiff
path: root/src/cstore/cstore-varref.cpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-11-19 14:47:30 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2010-11-19 14:47:30 -0800
commit3273b3f5feace0bb8f5f84e1e0bd924cdc866a54 (patch)
tree17c09dbde54e245749fe6eebc51ffc5ec2ec6873 /src/cstore/cstore-varref.cpp
parentf26e1cd34e95faf065197d130e24e10d2e10717a (diff)
downloadvyatta-cfg-3273b3f5feace0bb8f5f84e1e0bd924cdc866a54.tar.gz
vyatta-cfg-3273b3f5feace0bb8f5f84e1e0bd924cdc866a54.zip
fix existence check in "syntax" when builtin expression is used.
Diffstat (limited to 'src/cstore/cstore-varref.cpp')
-rw-r--r--src/cstore/cstore-varref.cpp4
1 files changed, 3 insertions, 1 deletions
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) {