From 1fa66ecc52d4f64269ddf2aab150ff4c249c0d05 Mon Sep 17 00:00:00 2001 From: yuxiaojun Date: Wed, 20 Mar 2024 14:32:35 +0800 Subject: [PATCH] fix: handle is uninitialized when BFLB_BLE_DISABLE_STATIC_ATTR defined 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");