Skip to content

Commit f4afc40

Browse files
raphlinusandroid code review
authored andcommitted
Merge "framework: fix bug for uninitialized variable"
2 parents cceed1d + 46e942d commit f4afc40

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)