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

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

Merge "bt: don't return the address of a stack-allocated string"

parents 31a39edb b18b8fd7
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1277,9 +1277,8 @@ void bluetooth::shim::BTM_SecClearSecurityFlags(const RawAddress& bd_addr) {
}

char* bluetooth::shim::BTM_SecReadDevName(const RawAddress& address) {
  char name[] = "TODO: See if this is needed";
  char* n = name;
  return n;
  static char name[] = "TODO: See if this is needed";
  return name;
}

bool bluetooth::shim::BTM_SecAddRmtNameNotifyCallback(