commit | 05c8c1b413bd259e950256764dd56b1a9340cbb7 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Sep 12 12:47:57 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Sep 12 12:47:57 2013 -0700 |
tree | 3fb308016490038fe944dbc46368d6c262e22432 | |
parent | 9bdb3b293656ee28a4a50c86d3916c0119ff6454 [diff] |
In Name::Component.get, set value to 0 for 0 size.
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp index 7079233..fe250ff 100644 --- a/ndn-cpp/name.hpp +++ b/ndn-cpp/name.hpp
@@ -55,6 +55,8 @@ componentStruct.valueLength = value_.size(); if (value_.size() > 0) componentStruct.value = (unsigned char*)value_.buf(); + else + componentStruct.value = 0; } /**