(loader-webp.cpp) Fixed SVACE errors
[platform/core/uifw/dali-adaptor.git] / 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))
   {