From d6c1481d1770ee7a12efa40061ab6d529de242f6 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Thu, 25 Aug 2022 20:57:57 -0230 Subject: [PATCH] Fix minor initialization warning. --- src/common/JPGLibrary.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/JPGLibrary.hxx b/src/common/JPGLibrary.hxx index 028a4c0f6..67e1a3f69 100644 --- a/src/common/JPGLibrary.hxx +++ b/src/common/JPGLibrary.hxx @@ -56,8 +56,7 @@ class JPGLibrary // The following data remains between invocations of allocateStorage, // and is only changed when absolutely necessary. struct ReadInfoType { - unsigned char* buffer; - //vector buffer; + unsigned char* buffer{nullptr}; uInt32 width{0}, height{0}, pitch{0}; }; ReadInfoType myReadInfo;