commit | 24b72448175148a5c06a57b8e5ddc0e1fe345f04 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Sep 19 12:32:35 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Sep 19 12:32:35 2013 -0700 |
tree | 0c82abe9520938f653fb1f776cf35bef89e566a2 | |
parent | e529ace9100d9d2770abfb60a0f9a1fec1a7e7fb [diff] |
Name: Fix bug in match: Need to compare component *getValue() since it is now a Blob.
diff --git a/ndn-cpp/name.cpp b/ndn-cpp/name.cpp index 22102bb..d6380ca 100644 --- a/ndn-cpp/name.cpp +++ b/ndn-cpp/name.cpp
@@ -254,7 +254,7 @@ const Component &selfComponent = components_[i]; const Component &nameComponent = name.components_[i]; - if (selfComponent.getValue() != nameComponent.getValue()) + if (*selfComponent.getValue() != *nameComponent.getValue()) return false; }