From df09fc84a4023b73c89877fc07c299c6a0e5a206 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 22 Aug 2017 18:44:32 -0700 Subject: [PATCH] [lowpan] fix uninitialized variable warnings (#2126) --- src/core/thread/lowpan.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/thread/lowpan.hpp b/src/core/thread/lowpan.hpp index 9f359587a..f5ef85e90 100644 --- a/src/core/thread/lowpan.hpp +++ b/src/core/thread/lowpan.hpp @@ -391,6 +391,12 @@ OT_TOOL_PACKED_BEGIN class FragmentHeader { public: + /** + * This constructor initializes the Fragment Header. + * + */ + FragmentHeader(void) { mDispatchSize = HostSwap16(kDispatch); mTag = 0; mOffset = 0; } + /** * This method initializes the Fragment Header. *