Skip to content
Snippets Groups Projects
Commit ebcc9d8f authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix crash of mjdgges when options_.qz_criterium = []

parent f9ecc164
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment