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

Commit 40a69f2b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Silence error by assigning \0 instead of NULL" into main

parents 602c2457 cd2b900a
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),