Ensure stack variable fields are initialized, prior to calling

a function that uses the fields (two lines later).
This commit is contained in:
Henry Gabryjelski committed 2019-10-05 12:03:31 -07:00
1 parent 4dc9d4f779
commit 9de7595758
1 file changed
+1 -1
+1 -1
View File
@@ -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) )
{