aboutsummaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorslark-yuxj <[email protected]>2024-03-20 19:57:36 +0800
committerGitHub <[email protected]>2024-03-20 11:57:36 +0000
commite8a1c3473335e30dbe81d4fa120aa3e222196d34 (patch)
tree54d16f3100357cd248637a2bfccdfa28ee016320 /source
parent1d12e9d7dd253b758cd4117e003e3913c9f9a061 (diff)
downloadIronOS-e8a1c3473335e30dbe81d4fa120aa3e222196d34.tar.gz
IronOS-e8a1c3473335e30dbe81d4fa120aa3e222196d34.zip
fix: handle is uninitialized when BFLB_BLE_DISABLE_STATIC_ATTR defined (#1895)
Signed-off-by: yuxiaojun <[email protected]>
Diffstat (limited to 'source')
-rw-r--r--source/Core/BSP/Pinecilv2/bl_mcu_sdk/components/ble/ble_stack/host/gatt.c2
1 files changed, 1 insertions, 1 deletions
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 ef9856cb..b972b7d6 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");