In the Interest constructor, set int values to -1
diff --git a/ndn-cpp/Interest.hpp b/ndn-cpp/Interest.hpp
index b981cf8..cf5647b 100644
--- a/ndn-cpp/Interest.hpp
+++ b/ndn-cpp/Interest.hpp
@@ -118,6 +118,16 @@
*/
class Interest {
public:
+ Interest()
+ {
+ minSuffixComponents_ = -1;
+ maxSuffixComponents_ = -1;
+ childSelector_ = -1;
+ answerOriginKind_ = -1;
+ scope_ = -1;
+ interestLifetime_ = -1;
+ }
+
void encode(std::vector<unsigned char> &output, WireFormat &wireFormat) const
{
wireFormat.encodeInterest(*this, output);