mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-22 00:47:23 +00:00
fix error: variable 'len' is used uninitialized when NDEBUG is defined
Signed-off-by: Xiang Xiao <[email protected]>
This commit is contained in:
@@ -357,6 +357,7 @@ ble_hci_sock_cmdevt_tx(uint8_t *hci_ev, uint8_t h4_type)
|
||||
STATS_INC(hci_sock_stats, oevt);
|
||||
} else {
|
||||
assert(0);
|
||||
return BLE_ERR_UNKNOWN_HCI_CMD;
|
||||
}
|
||||
iov[1].iov_len = len;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user