mirror of
https://github.com/espressif/openthread.git
synced 2026-10-02 13:57:38 +00:00
[mle] fix warning of maybe-uninitialied tlvType (#11114)
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "mle.hpp"
|
||||
|
||||
#include "instance/instance.hpp"
|
||||
#include "openthread/platform/toolchain.h"
|
||||
#include "utils/static_counter.hpp"
|
||||
|
||||
namespace ot {
|
||||
@@ -5293,6 +5294,8 @@ Error Mle::TxMessage::AppendDatasetTlv(MeshCoP::Dataset::Type aDatasetType)
|
||||
error = Get<MeshCoP::PendingDatasetManager>().Read(dataset);
|
||||
tlvType = Tlv::kPendingDataset;
|
||||
break;
|
||||
default:
|
||||
OT_ASSERT(false);
|
||||
}
|
||||
|
||||
if (error != kErrorNone)
|
||||
|
||||
Reference in New Issue
Block a user