(loader-webp.cpp) Fixed SVACE errors 91/258791/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 25 May 2021 16:45:48 +0000 (17:45 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 25 May 2021 16:45:48 +0000 (17:45 +0100)
Change-Id: I2e44b7ff7f8bc8a5994080ed43bf2cb29f945712

dali/internal/imaging/common/loader-webp.cpp

index 37404dd..e388712 100644 (file)
@@ -117,7 +117,7 @@ bool LoadWebpHeader(const Dali::ImageLoader::Input& input, unsigned int& width,
   // If the image is animated webp
 #ifdef DALI_ANIMATED_WEBP_ENABLED
   WebPData         webPData;
-  WebPAnimDecoder* webPAnimDecoder;
+  WebPAnimDecoder* webPAnimDecoder = nullptr;
   WebPAnimInfo     webPAnimInfo;
   if(ReadWebPInformation(fp, webPData))
   {
@@ -206,7 +206,7 @@ bool LoadBitmapFromWebp(const Dali::ImageLoader::Input& input, Dali::Devel::Pixe
   // If the image is animated webp
 #ifdef DALI_ANIMATED_WEBP_ENABLED
   WebPData         webPData;
-  WebPAnimDecoder* webPAnimDecoder;
+  WebPAnimDecoder* webPAnimDecoder = nullptr;
   WebPAnimInfo     webPAnimInfo;
   if(ReadWebPInformation(fp, webPData))
   {