Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit da8dd0f

Browse files
committed
libskia: Fix uninitialised pointer.
This prevents a crash on startup in the HTML5 engine.
1 parent 1c52a8e commit da8dd0f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libskia/src/ports/SkFontHost_linux.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ class SkFontMgr_Custom : public SkFontMgr {
379379
static const char* gDefaultNames[] = {
380380
"Arial", "Verdana", "Times New Roman", NULL
381381
};
382+
gDefaultNormal = NULL;
382383
for (size_t i = 0; i < SK_ARRAY_COUNT(gDefaultNames); ++i) {
383384
SkFontStyleSet_Custom* set = this->onMatchFamily(gDefaultNames[i]);
384385
if (NULL == set) {

0 commit comments

Comments
 (0)