Fix bug #3171370: initialise font resolution callback pointers

svn path=/trunk/netsurf/; revision=11608
This commit is contained in:
John Mark Bell 2011-02-03 09:31:11 +00:00
parent b6a7ab7af6
commit 28d1817bdd
2 changed files with 6 additions and 0 deletions

View File

@ -120,6 +120,8 @@ nserror nscss_create_css_data(struct content_css_data *c,
params.import_pw = NULL;
params.color = gui_system_colour;
params.color_pw = NULL;
params.font = NULL;
params.font_pw = NULL;
error = css_stylesheet_create(&params, ns_realloc, NULL, &c->sheet);
if (error != CSS_OK) {
@ -462,6 +464,8 @@ css_error nscss_import_complete(struct content_css_data *c,
params.import_pw = NULL;
params.color = gui_system_colour;
params.color_pw = NULL;
params.font = NULL;
params.font_pw = NULL;
error = css_stylesheet_create(&params,
ns_realloc, NULL,

View File

@ -179,6 +179,8 @@ css_stylesheet *nscss_create_inline_style(const uint8_t *data, size_t len,
params.import_pw = NULL;
params.color = gui_system_colour;
params.color_pw = NULL;
params.font = NULL;
params.font_pw = NULL;
error = css_stylesheet_create(&params, alloc, pw, &sheet);
if (error != CSS_OK) {