From 9de75957588eda15aff40e91bee6e7c87b2b9fb1 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Mon, 30 Sep 2019 17:05:06 -0700 Subject: [PATCH] Ensure stack variable fields are initialized, prior to calling a function that uses the fields (two lines later). --- libraries/Bluefruit52Lib/src/BLEGatt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Bluefruit52Lib/src/BLEGatt.cpp b/libraries/Bluefruit52Lib/src/BLEGatt.cpp index 89e62bad..d97e6812 100644 --- a/libraries/Bluefruit52Lib/src/BLEGatt.cpp +++ b/libraries/Bluefruit52Lib/src/BLEGatt.cpp @@ -211,7 +211,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt) if (rd_rsp->count) { - ble_gattc_handle_value_t hdl_value; + ble_gattc_handle_value_t hdl_value = { 0, null }; if ( ERROR_NONE == sd_ble_gattc_evt_char_val_by_uuid_read_rsp_iter(&evt->evt.gattc_evt, &hdl_value) ) {