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

Commit 29380ec4 authored by Ventsislav Zahariev's avatar Ventsislav Zahariev Committed by Gerrit Code Review
Browse files

Merge "Fix coverity scan issue: array out of band"

parents 91148bc1 f016e5b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -439,7 +439,7 @@ void initialize_device(btif_rc_device_cb_t* p_dev) {

static btif_rc_device_cb_t* get_connected_device(int index) {
  BTIF_TRACE_DEBUG("%s: index: %d", __func__, index);
  if (index > BTIF_RC_NUM_CONN) {
  if (index >= BTIF_RC_NUM_CONN) {
    BTIF_TRACE_ERROR("%s: can't support more than %d connections", __func__,
                     BTIF_RC_NUM_CONN);
    return NULL;