X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fspv%2Fspv.c;h=7a3dae4d3d4a733834bf534534a1483b9ae9772e;hb=df1d194af32e35739355981252785e768f21ebb0;hp=38abf9775c87cb93ab5e9d385712c8821612d656;hpb=7be27d2d9fb7f5d62523c744599bc4cc2f3fc1ea;p=pspp diff --git a/src/output/spv/spv.c b/src/output/spv/spv.c index 38abf9775c..7a3dae4d3d 100644 --- a/src/output/spv/spv.c +++ b/src/output/spv/spv.c @@ -321,6 +321,9 @@ decode_page_paragraph (const struct spvsx_page_paragraph *page_paragraph, { memset (ph, 0, sizeof *ph); + if (!page_paragraph) + return; + const struct spvsx_page_paragraph_text *page_paragraph_text = page_paragraph->page_paragraph_text; if (!page_paragraph_text) @@ -887,7 +890,7 @@ spv_decode_fmt_spec (uint32_t u32, struct fmt_spec *out) if (ok) { fmt_fix_output (out); - ok = fmt_check_width_compat (out, 0); + ok = fmt_check_width_compat (*out, 0); } if (!ok)