commit | 38d0e087a00c127fb227558c96c285ba19a61401 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Mon Aug 12 18:07:44 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Mon Aug 12 18:07:44 2013 -0700 |
tree | eb63c20c73f3a9b9e84d4f13e061f0b45ce4eb7c | |
parent | 2e0e0884212e305ffa2147a3f24fd8a5cb420a6d [diff] [blame] |
Change the ExcludeEntry to use a name component directly.
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp index 2baee7d..5d6fb19 100644 --- a/ndn-cpp/name.hpp +++ b/ndn-cpp/name.hpp
@@ -50,8 +50,9 @@ */ void get(struct ndn_NameComponent &componentStruct) const { - componentStruct.value = (unsigned char *)&value_[0]; componentStruct.valueLength = value_.size(); + if (value_.size() > 0) + componentStruct.value = (unsigned char *)&value_[0]; } /**