Skip to content

Commit 46e942d

Browse files
Zhou Changshuogao
authored andcommitted
framework: fix bug for uninitialized variable
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
1 parent 0dab1a1 commit 46e942d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/android/graphics/Paint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ class SkPaintGlue {
750750
static void doTextBounds(JNIEnv* env, const jchar* text, int count,
751751
jobject bounds, const SkPaint& paint)
752752
{
753-
SkRect r;
753+
SkRect r{0,0,0,0};
754754
SkIRect ir;
755755

756756
sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(&paint,

0 commit comments

Comments
 (0)