X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Fspv%2Fspv.c;h=83fba9631cc9287f2e3d3cb5b1de99f4493f17fe;hb=f1ae4ee2876bee191b1bf79672d4bf834750c227;hp=f186e638e70c9f8944a31a826081bc36f3f5e296;hpb=50f6ea7d66d03895020891215fb4f55bbf061003;p=pspp diff --git a/src/output/spv/spv.c b/src/output/spv/spv.c index f186e638e7..83fba9631c 100644 --- a/src/output/spv/spv.c +++ b/src/output/spv/spv.c @@ -374,7 +374,7 @@ extract_html_text (const xmlNode *node, int base_font_size, struct string *s) else { uint8_t r, g, b; - if (sscanf (color, "rgb (%"SCNu8", %"SCNu8", %"SCNu8" )", + if (sscanf (color, "rgb (%"SCNu8", %"SCNu8", %"SCNu8")", &r, &g, &b) == 3) { char color2[8]; @@ -420,7 +420,7 @@ extract_html_text (const xmlNode *node, int base_font_size, struct string *s) Do the same for U+2007 FIGURE SPACE, which also crops out weirdly sometimes. */ ds_extend (s, ds_length (s) + xmlStrlen (node->content)); - for (const uint8_t *p = node->content; *p; ) + for (const uint8_t *p = node->content; *p;) { int c; if (p[0] == 0xc2 && p[1] == 0xa0) @@ -605,7 +605,7 @@ spv_item_get_light_table (const struct spv_item *item, struct spvbin_input input; spvbin_input_init (&input, data, size); - struct spvlb_table *table; + struct spvlb_table *table = NULL; error = (!size ? xasprintf ("light table member is empty") : !spvlb_parse_table (&input, &table) @@ -965,7 +965,7 @@ spv_decode_children (struct spv_reader *spv, const char *structure_member, { const struct spvxml_node *node = seq[i]; - char *error; + char *error = NULL; if (spvsx_is_container (node)) { const struct spvsx_container *container