X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fspv%2Fspv.c;h=4547e967945a3c776cdcd97b9b9f6398de43694e;hb=1db2bd57421a548a388193711969f3d94b661cee;hp=93f61b20bb12cae6ed9f6a118d2214dace394902;hpb=0b0886e1ebd8c420363925eea89c650ef9d45869;p=pspp diff --git a/src/output/spv/spv.c b/src/output/spv/spv.c index 93f61b20bb..4547e96794 100644 --- a/src/output/spv/spv.c +++ b/src/output/spv/spv.c @@ -282,17 +282,18 @@ decode_container_text (const struct spvsx_container_text *ct) { struct font_style *font_style = xmalloc (sizeof *font_style); char *text = decode_embedded_html (ct->html->node_.raw, font_style); + struct pivot_value *value = xmalloc (sizeof *value); *value = (struct pivot_value) { - .font_style = font_style, - .type = PIVOT_VALUE_TEXT, .text = { + .type = PIVOT_VALUE_TEXT, .local = text, .c = text, .id = text, .user_provided = true, }, }; + pivot_value_ex_rw (value)->font_style = font_style; struct output_item *item = text_item_create_value (TEXT_ITEM_LOG, value, NULL); @@ -838,7 +839,6 @@ spv_read (const char *filename, struct output_item **outp, if (psp) *psp = NULL; - struct spv_reader *spv = xzalloc (sizeof *spv); struct zip_reader *zip; char *error = zip_reader_create (filename, &zip); if (error)