[ncp] initialize SpinelEncoder property mSavedNumOpenStructs (#2394)

This commit is contained in:
Abtin Keshavarzian
2017-12-06 16:50:12 +00:00
committed by Jonathan Hui
parent d704694816
commit 9afb77668f
+2 -1
View File
@@ -59,7 +59,8 @@ public:
* @param[in] aNcpBuffer A reference to a `NcpFrameBuffer` where the frames are written.
*
*/
SpinelEncoder(NcpFrameBuffer &aNcpBuffer): mNcpBuffer(aNcpBuffer), mNumOpenStructs(0) { }
SpinelEncoder(NcpFrameBuffer &aNcpBuffer):
mNcpBuffer(aNcpBuffer), mNumOpenStructs(0), mSavedNumOpenStructs(0), mSavedPosition() { }
/**
* This method begins a new frame to be added/written to the frame buffer.