Fix minor initialization warning.

This commit is contained in:
Stephen Anthony 2022-08-25 20:57:57 -02:30
parent 4b79864ccc
commit d6c1481d17
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ class JPGLibrary
// The following data remains between invocations of allocateStorage, // The following data remains between invocations of allocateStorage,
// and is only changed when absolutely necessary. // and is only changed when absolutely necessary.
struct ReadInfoType { struct ReadInfoType {
unsigned char* buffer; unsigned char* buffer{nullptr};
//vector<unsigned char> buffer;
uInt32 width{0}, height{0}, pitch{0}; uInt32 width{0}, height{0}, pitch{0};
}; };
ReadInfoType myReadInfo; ReadInfoType myReadInfo;