Commit ebcc9d8f authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix crash of mjdgges when options_.qz_criterium = []

parent f9ecc164
...@@ -119,7 +119,7 @@ mexFunction(int nlhs, mxArray *plhs[], ...@@ -119,7 +119,7 @@ mexFunction(int nlhs, mxArray *plhs[],
b = mxGetPr(prhs[1]); b = mxGetPr(prhs[1]);
/* set criterium for stable eigenvalues */ /* set criterium for stable eigenvalues */
if (nrhs == 3) if (nrhs == 3 && mxGetM(prhs[2]) > 0)
{ {
criterium = *mxGetPr(prhs[2]); criterium = *mxGetPr(prhs[2]);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment