diff options
author | Zhou Chang <chang.zhou@intel.com> | 2012-07-27 10:50:15 +0800 |
---|---|---|
committer | Shuo Gao <shuo.gao@intel.com> | 2012-08-31 10:53:04 +0800 |
commit | 46e942d500d5ce67a58269cbac3307deca6a5c9f (patch) | |
tree | 5c86d01e82d61866f80ede6b01e22ff6a53f13b2 /core/jni | |
parent | 0dab1a198e19c9993897b031d425a61a3bfec562 (diff) | |
download | frameworks_base-46e942d500d5ce67a58269cbac3307deca6a5c9f.zip frameworks_base-46e942d500d5ce67a58269cbac3307deca6a5c9f.tar.gz frameworks_base-46e942d500d5ce67a58269cbac3307deca6a5c9f.tar.bz2 |
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
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android/graphics/Paint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/Paint.cpp b/core/jni/android/graphics/Paint.cpp index a65262c..a4d5477 100644 --- a/core/jni/android/graphics/Paint.cpp +++ b/core/jni/android/graphics/Paint.cpp @@ -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, |