diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-11-19 14:47:30 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-11-19 14:47:30 -0800 |
commit | 3273b3f5feace0bb8f5f84e1e0bd924cdc866a54 (patch) | |
tree | 17c09dbde54e245749fe6eebc51ffc5ec2ec6873 /src/cstore/cstore-varref.cpp | |
parent | f26e1cd34e95faf065197d130e24e10d2e10717a (diff) | |
download | vyatta-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.cpp | 4 |
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) { |