@@ -10,6 +10,9 @@ Matrix createMatrix(unsigned int rows, unsigned int cols)
Matrix newMatrix;
newMatrix.rows = rows;
newMatrix.cols = cols;
if (rows == 0 || cols == 0)
newMatrix.buffer = NULL;
else
newMatrix.buffer = calloc(rows*cols, sizeof(MatrixType));
return newMatrix;
}
The note is not visible to the blocked user.