lottie/render: Fixed valgrind warning for uninitialize member variable. 27/186727/3
authorsubhransu mohanty <sub.mohanty@samsung.com>
Tue, 14 Aug 2018 02:00:15 +0000 (11:00 +0900)
committerHermet Park <chuneon.park@samsung.com>
Tue, 14 Aug 2018 08:47:10 +0000 (08:47 +0000)
Change-Id: I3c985c00b54d91b936c401febe9dff0d766e1793

src/lottie/lottieitem.h
src/lottie/lottiemodel.h

index 9a5c486..eebc24e 100644 (file)
@@ -238,7 +238,7 @@ protected:
    LOTRectData           *mData;
 
    struct Cache {
-        int                  mFrameNo;
+        int                  mFrameNo{-1};
         VPointF              mPos;
         VPointF              mSize;
         float                mRoundness;
@@ -276,7 +276,7 @@ private:
    LOTEllipseData           *mData;
 
    struct Cache {
-        int                  mFrameNo;
+        int                  mFrameNo{-1};
         VPointF              mPos;
         VPointF              mSize;
    };
@@ -320,14 +320,14 @@ private:
    LOTPolystarData             *mData;
 
    struct Cache {
-        int                     mFrameNo;
+        int                     mFrameNo{-1};
         VPointF                 mPos;
-        float                   mPoints;
-        float                   mInnerRadius;
-        float                   mOuterRadius;
-        float                   mInnerRoundness;
-        float                   mOuterRoundness;
-        float                   mRotation;
+        float                   mPoints{0};
+        float                   mInnerRadius{0};
+        float                   mOuterRadius{0};
+        float                   mInnerRoundness{0};
+        float                   mOuterRoundness{0};
+        float                   mRotation{0};
    };
    Cache                        mCache;
 
index 8d9df61..b9dba2c 100644 (file)
@@ -453,7 +453,7 @@ public:
     LOTAnimatable<float>              mWidth;      /* "w" */
     CapStyle                          mCapStyle;   /* "lc" */
     JoinStyle                         mJoinStyle;  /* "lj" */
-    float                             mMeterLimit; /* "ml" */
+    float                             mMeterLimit{0}; /* "ml" */
     LOTDashProperty                   mDash;
     bool                              mEnabled = true; /* "fillEnabled" */
 };
@@ -562,7 +562,7 @@ public:
     LOTAnimatable<float>           mWidth;       /* "w" */
     CapStyle                       mCapStyle;    /* "lc" */
     JoinStyle                      mJoinStyle;   /* "lj" */
-    float                          mMeterLimit;  /* "ml" */
+    float                          mMeterLimit{0};  /* "ml" */
     LOTDashProperty                mDash;
 };