OSDN Git Service

framework: fix bug for uninitialized variable
authorZhou Chang <chang.zhou@intel.com>
Fri, 27 Jul 2012 02:50:15 +0000 (10:50 +0800)
committerShuo Gao <shuo.gao@intel.com>
Fri, 31 Aug 2012 02:53:04 +0000 (10:53 +0800)
Some application display error due to uninitialized varibale.
This patch fix the bug

Change-Id: I660169e325ffae60d95c7774aaaeaebf693adf3d
Author: Chang Zhou <chang.zhou@intel.com>
Signed-off-by: Chang Zhou <chang.zhou@intel.com>
Signed-off-by: Chong Xing <chong.xing@intel.com>
Signed-off-by: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 45356

core/jni/android/graphics/Paint.cpp

index a65262c..a4d5477 100644 (file)
@@ -750,7 +750,7 @@ public:
     static void doTextBounds(JNIEnv* env, const jchar* text, int count,
                              jobject bounds, const SkPaint& paint)
     {
-        SkRect  r;
+        SkRect  r{0,0,0,0};
         SkIRect ir;
 
         sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(&paint,