From 669bb582e0529139082335214b209f94dbba74f7 Mon Sep 17 00:00:00 2001 From: Christian Baars Date: Sun, 7 Apr 2024 18:38:42 +0200 Subject: [PATCH] Coming upstream changes: NimBLEService.cpp (#21120) --- lib/libesp32_div/esp-nimble-cpp/src/NimBLEService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libesp32_div/esp-nimble-cpp/src/NimBLEService.cpp b/lib/libesp32_div/esp-nimble-cpp/src/NimBLEService.cpp index 6c4780c82..02195ace7 100644 --- a/lib/libesp32_div/esp-nimble-cpp/src/NimBLEService.cpp +++ b/lib/libesp32_div/esp-nimble-cpp/src/NimBLEService.cpp @@ -159,7 +159,7 @@ bool NimBLEService::start() { // Nimble requires the last characteristic to have it's uuid = 0 to indicate the end // of the characteristics for the service. We create 1 extra and set it to null // for this purpose. - pChr_a = new ble_gatt_chr_def[numChrs + 1]; + pChr_a = new ble_gatt_chr_def[numChrs + 1]{}; int i = 0; for(auto chr_it = m_chrVec.begin(); chr_it != m_chrVec.end(); ++chr_it) { if((*chr_it)->m_removed > 0) {