Skip to content

Commit eceb317

Browse files
raphlinusAndroid Git Automerger
authored andcommitted
am f4afc40: Merge "framework: fix bug for uninitialized variable"
* commit 'f4afc40101c00800c4dc53f165b93f741327416d': framework: fix bug for uninitialized variable
2 parents 4c686da + f4afc40 commit eceb317

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)