Fix crash of mjdgges when options_.qz_criterium = []
parent
f9ecc164ce
commit
ebcc9d8f91
|
@ -119,7 +119,7 @@ mexFunction(int nlhs, mxArray *plhs[],
|
|||
b = mxGetPr(prhs[1]);
|
||||
|
||||
/* set criterium for stable eigenvalues */
|
||||
if (nrhs == 3)
|
||||
if (nrhs == 3 && mxGetM(prhs[2]) > 0)
|
||||
{
|
||||
criterium = *mxGetPr(prhs[2]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue