Fix corrupt MAT file when writing empty numeric and character data in compressed format because the data tag is not written
Fix corrupt MAT file when writing empty numeric and character data in compressed format because the data tag is not written

* src/mat5.c (WriteCompressedCharData): Remove initial check that returns
      0 if data is NULL, and instead return the byteswritten after writing
      the data tag and size

* src/mat5.c (WriteCompressedData): Remove initial check that returns 0 if
      data is NULL, and instead return the byteswritten after writing the
      data tag and size

telehan/libmatio,tbeu/matio,CBL-ORION/matio,NJannasch/matio,martinichka/matio-coder,CBL-ORION/matio-sf-mirror,tbeu/matio,MaartenBent/matio,martinichka/matio-coder,MaartenBent/matio,telehan/libmatio,MaartenBent/matio,CBL-ORION/matio-sf-mirror,NJannasch/matio,tbeu/matio,CBL-ORION/matio,tbeu/matio,MaartenBent/matio,martinichka/matio-coder