Loading system/stack/sdp/sdp_db.cc +1 −1 Original line number Original line Diff line number Diff line Loading @@ -312,7 +312,7 @@ bool SDP_DeleteRecord(uint32_t handle) { for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { if (p_rec->record_handle == handle) { if (p_rec->record_handle == handle) { /* Found it. Shift everything up one */ /* Found it. Shift everything up one */ for (yy = xx; yy < sdp_cb.server_db.num_records; yy++, p_rec++) { for (yy = xx; yy < sdp_cb.server_db.num_records - 1; yy++, p_rec++) { *p_rec = *(p_rec + 1); *p_rec = *(p_rec + 1); /* Adjust the attribute value pointer for each attribute */ /* Adjust the attribute value pointer for each attribute */ Loading Loading
system/stack/sdp/sdp_db.cc +1 −1 Original line number Original line Diff line number Diff line Loading @@ -312,7 +312,7 @@ bool SDP_DeleteRecord(uint32_t handle) { for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { if (p_rec->record_handle == handle) { if (p_rec->record_handle == handle) { /* Found it. Shift everything up one */ /* Found it. Shift everything up one */ for (yy = xx; yy < sdp_cb.server_db.num_records; yy++, p_rec++) { for (yy = xx; yy < sdp_cb.server_db.num_records - 1; yy++, p_rec++) { *p_rec = *(p_rec + 1); *p_rec = *(p_rec + 1); /* Adjust the attribute value pointer for each attribute */ /* Adjust the attribute value pointer for each attribute */ Loading