Initialize uninitialized variables
This commit is contained in:
parent
b96f5af037
commit
ceae86899d
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user