Initialize variables in copyM2Sparse
PiperOrigin-RevId: 788875024 Change-Id: I87068a3878e0b6bc5227bb61e84c07e75e448eea
This commit is contained in:
committed by
Copybara-Service
parent
51babec9c5
commit
82cf27992d
@@ -1138,8 +1138,8 @@ static void checkDBSparse(const mjModel* m, mjData* d) {
|
||||
static void copyM2Sparse(const mjModel* m, mjData* d, int* dst, const int* src,
|
||||
int reduced, int upper) {
|
||||
int nv = m->nv;
|
||||
const int* rownnz;
|
||||
const int* rowadr;
|
||||
const int* rownnz = NULL;
|
||||
const int* rowadr = NULL;
|
||||
if (reduced && !upper) {
|
||||
rownnz = d->M_rownnz;
|
||||
rowadr = d->M_rowadr;
|
||||
|
||||
Reference in New Issue
Block a user