fix: handle is uninitialized when BFLB_BLE_DISABLE_STATIC_ATTR defined (#1895)

Signed-off-by: yuxiaojun <yuxiaojun@uniontech.com>
This commit is contained in:
slark-yuxj
2024-03-20 19:57:36 +08:00
committed by GitHub
parent 1d12e9d7dd
commit e8a1c34733

View File

@@ -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) { int bt_gatt_notify_cb(struct bt_conn *conn, struct bt_gatt_notify_params *params) {
struct notify_data data; struct notify_data data;
const struct bt_gatt_attr *attr; const struct bt_gatt_attr *attr;
u16_t handle; u16_t handle = 0;
__ASSERT(params, "invalid parameters\n"); __ASSERT(params, "invalid parameters\n");
__ASSERT(params->attr, "invalid parameters\n"); __ASSERT(params->attr, "invalid parameters\n");