Merge "framework: fix bug for uninitialized variable"

This commit is contained in:
Raph Levien
2012-09-14 11:52:11 -07:00
committed by android code review

View File

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