Skip to content

Commit bb91fd8

Browse files
rugeGerritsenrlubos
authored andcommitted
tests: bluetooth: Initialize conn to NULL for bt_conn_le_create()
After zephyrproject-rtos/zephyr#79856 a warning message is printed out if the connection object is not initialized to NULL. This commit addresses this by initialing it. Signed-off-by: Rubin Gerritsen <[email protected]> (cherry picked from commit 204858e)
1 parent 0663aa2 commit bb91fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bluetooth/iso/modules/central.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static int device_found(uint8_t type, const uint8_t *data, uint8_t data_len,
198198
const bt_addr_le_t *addr)
199199
{
200200
int ret;
201-
struct bt_conn *conn;
201+
struct bt_conn *conn = NULL;
202202

203203
if (all_peers_connected()) {
204204
LOG_DBG("All peripherals connected");

0 commit comments

Comments
 (0)