Initialize uninitialized variables

This commit is contained in:
Luis Díaz Más 2022-01-06 18:21:26 +01:00
parent b96f5af037
commit ceae86899d

View File

@ -92,7 +92,7 @@ namespace Exiv2 {
}
}
}
} // PngImage::PngImage
}
std::string PngImage::mimeType() const
{
@ -102,7 +102,7 @@ namespace Exiv2 {
static bool zlibToDataBuf(const byte* bytes,long length, DataBuf& result)
{
uLongf uncompressedLen = length * 2; // just a starting point
int zlibResult;
int zlibResult = Z_BUF_ERROR;
do {
result.alloc(uncompressedLen);
@ -130,7 +130,7 @@ namespace Exiv2 {
static bool zlibToCompressed(const byte* bytes,long length, DataBuf& result)
{
uLongf compressedLen = length; // just a starting point
int zlibResult;
int zlibResult = Z_BUF_ERROR;
do {
result.alloc(compressedLen);