Skip to content
Commit 8f76cdd8 authored by Emil Gydesen's avatar Emil Gydesen Committed by Mahesh Mahadevan
Browse files

Bluetooth: TBS: Fix issues with lookup_inst_by_uri_scheme



The function took the uri as a `char *` but is in fact
not a null terminated string so change the type to uint8_t *.

Add a check fro uri_len == 0 before doing uri_len - 1

Changed the found check to just check the first octet rather
than the more costly strlen.

Fixed the type of the iterator

Add a break in the loop as we only need to find one ":"

Signed-off-by: default avatarEmil Gydesen <emil.gydesen@nordicsemi.no>
parent 52cb8c07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment