Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f46b1b5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Silence error by assigning \0 instead of NULL" into main am: 40a69f2b am: 6738e723

parents 22376cf5 6738e723
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ typedef uint8_t BD_NAME[BD_NAME_LEN + 1]; /* Device name */

inline constexpr BD_NAME kBtmBdNameEmpty = {};
constexpr size_t kBdNameLength = static_cast<size_t>(BD_NAME_LEN);
constexpr uint8_t kBdNameDelim = (uint8_t)NULL;
constexpr uint8_t kBdNameDelim = (uint8_t)'\0';

inline size_t bd_name_copy(BD_NAME bd_name_dest, const BD_NAME bd_name_src) {
  return strlcpy(reinterpret_cast<char*>(bd_name_dest), reinterpret_cast<const char*>(bd_name_src),