Skip to content

Commit

Permalink
bluetooth/hal/bcm20706: Fix uninitialized issue
Browse files Browse the repository at this point in the history
Fix code that uninitialized value is there.

Detected by CodeSonar 761171
  • Loading branch information
SPRESENSE committed Dec 13, 2021
1 parent fdea248 commit d9e2579
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/modules/bluetooth/hal/bcm20706/bcm20706_ble_gatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ static int bcm20706_ble_add_characteristic(uint16_t serv_handle, struct ble_gatt

memset(&char_value, 0, sizeof(BLE_GattsAttr));

/* Setup char handle */

memset(&char_handle, 0, sizeof(BLE_GattsCharHandles));

ret = bcm20706_ble_copy_uuid(&char_value.valueUuid, &ble_gatt_char->uuid);

if (ret != BT_SUCCESS)
Expand Down

0 comments on commit d9e2579

Please sign in to comment.