From e8a1c3473335e30dbe81d4fa120aa3e222196d34 Mon Sep 17 00:00:00 2001 From: slark-yuxj <95608083+slark-yuxj@users.noreply.github.com> Date: Wed, 20 Mar 2024 19:57:36 +0800 Subject: [PATCH] fix: handle is uninitialized when BFLB_BLE_DISABLE_STATIC_ATTR defined (#1895) Signed-off-by: yuxiaojun --- .../Pinecilv2/bl_mcu_sdk/components/ble/ble_stack/host/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Core/BSP/Pinecilv2/bl_mcu_sdk/components/ble/ble_stack/host/gatt.c b/source/Core/BSP/Pinecilv2/bl_mcu_sdk/components/ble/ble_stack/host/gatt.c index ef9856cb50..b972b7d6bb 100644 --- a/source/Core/BSP/Pinecilv2/bl_mcu_sdk/components/ble/ble_stack/host/gatt.c +++ b/source/Core/BSP/Pinecilv2/bl_mcu_sdk/components/ble/ble_stack/host/gatt.c @@ -1686,7 +1686,7 @@ static u8_t match_uuid(const struct bt_gatt_attr *attr, void *user_data) { int bt_gatt_notify_cb(struct bt_conn *conn, struct bt_gatt_notify_params *params) { struct notify_data data; const struct bt_gatt_attr *attr; - u16_t handle; + u16_t handle = 0; __ASSERT(params, "invalid parameters\n"); __ASSERT(params->attr, "invalid parameters\n");