[mle] fix warning of maybe-uninitialied tlvType (#11114)

This commit is contained in:
Yakun Xu
2025-01-06 08:53:28 -08:00
committed by GitHub
parent 173cb61379
commit 10a0a65f71
+3
View File
@@ -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)