Initialize ImageProperties structure
[platform/core/uifw/dali-adaptor.git] / adaptors / devel-api / adaptor-framework / gif-loading.cpp
index 88ca5ad..e8009e9 100755 (executable)
@@ -167,6 +167,13 @@ struct LoaderInfo
 
 struct ImageProperties
 {
+  ImageProperties()
+  : w( 0 ),
+    h( 0 ),
+    alpha( 0 )
+  {
+  }
+
   unsigned int w;
   unsigned int h;
   bool alpha;
@@ -632,10 +639,6 @@ bool ReadHeader( LoaderInfo &loaderInfo,
   FrameInfo *frameInfo = NULL;
   bool full = true;
 
-  // init prop struct with some default null values
-  prop.w = 0;
-  prop.h = 0;
-
   if( fileData.isLocalResource )
   {
     // local file