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

Commit 8a72320c authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1418959

Change-Id: I5bb205bbf7389c8b9dadd55017e266d4f2aa97b8
parents 21eaf634 5006e690
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(