commit | 6c146d797e7f2690bfba5206c1a45791b416ddb6 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Mon Sep 23 12:17:11 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Mon Sep 23 12:17:11 2013 -0700 |
tree | a6ecfeeda701a055977e00935bd9b9de07cb8dcc | |
parent | 8659fa11bf80de5fc02b4497004d85e9954468c5 [diff] [blame] |
Name: Fix bug in makeSegment: need to create the initial vector.
diff --git a/ndn-cpp/name.cpp b/ndn-cpp/name.cpp index d6380ca..86cb843 100644 --- a/ndn-cpp/name.cpp +++ b/ndn-cpp/name.cpp
@@ -132,7 +132,7 @@ Blob Name::Component::makeSegment(unsigned long segment) { - shared_ptr<vector<unsigned char> > value; + shared_ptr<vector<unsigned char> > value(new vector<unsigned char>()); // Add the leading zero. value->push_back(0);