Skip to content

Commit ceae868

Browse files
committed
Initialize uninitialized variables
1 parent b96f5af commit ceae868

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pngimage.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace Exiv2 {
9292
}
9393
}
9494
}
95-
} // PngImage::PngImage
95+
}
9696

9797
std::string PngImage::mimeType() const
9898
{
@@ -102,7 +102,7 @@ namespace Exiv2 {
102102
static bool zlibToDataBuf(const byte* bytes,long length, DataBuf& result)
103103
{
104104
uLongf uncompressedLen = length * 2; // just a starting point
105-
int zlibResult;
105+
int zlibResult = Z_BUF_ERROR;
106106

107107
do {
108108
result.alloc(uncompressedLen);
@@ -130,7 +130,7 @@ namespace Exiv2 {
130130
static bool zlibToCompressed(const byte* bytes,long length, DataBuf& result)
131131
{
132132
uLongf compressedLen = length; // just a starting point
133-
int zlibResult;
133+
int zlibResult = Z_BUF_ERROR;
134134

135135
do {
136136
result.alloc(compressedLen);

0 commit comments

Comments
 (0)