In ndn_Interest_init, also initialize publisherPublicKeyDigestLength and nonceLength to 0.
diff --git a/ndn-cpp/c/Interest.h b/ndn-cpp/c/Interest.h
index 36d873b..a007f1a 100644
--- a/ndn-cpp/c/Interest.h
+++ b/ndn-cpp/c/Interest.h
@@ -33,12 +33,14 @@
self->maxSuffixComponents = -1;
self->minSuffixComponents = -1;
self->publisherPublicKeyDigest = 0;
+ self->publisherPublicKeyDigestLength = 0;
// TODO: implement exclude
self->childSelector = -1;
self->answerOriginKind = -1;
self->scope = -1;
self->interestLifetime = -1;
- self->nonce = 0; /**< length of nonce */
+ self->nonce = 0;
+ self->nonceLength = 0;
}
#ifdef __cplusplus