Skip to content

Commit c63ec6b

Browse files
Thalleyjhedberg
authored andcommitted
tests: Bluetooth: Audio: Fix uninitalized value
copy may be uninitialzed in the default case, which causes some compiler warnings/errors when returned and used. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 5eed3a9 commit c63ec6b

File tree

1 file changed

+1
-0
lines changed
  • tests/bluetooth/audio/mocks/src

1 file changed

+1
-0
lines changed

tests/bluetooth/audio/mocks/src/gatt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ static struct bt_uuid *uuid_deep_copy(const struct bt_uuid *uuid)
150150
memcpy(copy, uuid, sizeof(struct bt_uuid_128));
151151
break;
152152
default:
153+
copy = NULL;
153154
zassert_unreachable("Unexpected uuid->type 0x%02x", uuid->type);
154155
}
155156

0 commit comments

Comments
 (0)