desktop: reversed mimetype to application/x-spss-sps
[pspp] / src / output / spv / spv.c
index f186e638e70c9f8944a31a826081bc36f3f5e296..83fba9631cc9287f2e3d3cb5b1de99f4493f17fe 100644 (file)
@@ -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