Skip to content

Commit

Permalink
Added a check for an empty array for the matlab writer
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHazard committed Jan 10, 2024
1 parent 7d72e9a commit 96fe3c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mexSrc/parallelwritetiffmex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void mexFunction(int nlhs, mxArray *plhs[],
mexCallMATLAB(1, mCharA, 1, mString, "char");
fileName = mxArrayToString(mCharA[0]);
}
if(mxIsEmpty(prhs[1])) mexErrMsgIdAndTxt("tiff:inputError","All input data axes must be of at least size 1");

// Handle the tilde character in filenames on Linux/Mac
#ifndef _WIN32
Expand Down

0 comments on commit 96fe3c0

Please sign in to comment.