mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-04 05:57:23 +00:00
nimble/gatts: Fix use of uninitialized variable
new_notification was set to 1 only on complete iteration of loop. If ble_hs_conn_find_by_idx would return NULL on first iteration it would be used uninitialized X-Original-Commit: 3f1ea82ac4ef1043f595ccc7ded14d57279efa62
This commit is contained in:
@@ -1443,7 +1443,7 @@ ble_gatts_chr_updated(uint16_t chr_val_handle)
|
||||
struct ble_store_key_cccd cccd_key;
|
||||
struct ble_gatts_clt_cfg *clt_cfg;
|
||||
struct ble_hs_conn *conn;
|
||||
int new_notifications;
|
||||
int new_notifications = 0;
|
||||
int clt_cfg_idx;
|
||||
int persist;
|
||||
int rc;
|
||||
|
||||
Reference in New Issue
Block a user