Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit addresses an issue in the BLEUuid class where the UUID string was not being properly copied. Previously, the class stored a pointer to the original string, which could lead to issues if the original string was modified or went out of scope. The fix involves changing the _str member of the BLEUuid class to be a non-const char pointer, and using the strdup function to create a copy of the string in the BLEUuid constructor. The destructor of the BLEUuid class has also been updated to free the memory allocated for the string copy. This change ensures that the BLEUuid class has its own copy of the UUID string, preventing potential issues caused by changes to the original string. Signed-off-by: Mankianer <[email protected]>
- Loading branch information