table: Make table_collect_footnotes() not return NULL footnotes.
[pspp] / src / output / render.c
index 4c98ad0fd9e6335334d7a4607847a2445b57ba53..636568f4eedd6bcf0f53b78b6b8cb8932e75fe33 100644 (file)
@@ -1517,16 +1517,15 @@ add_footnote_page (struct render_pager *p, const struct table_item *item)
   struct tab_table *t = tab_create (2, n_footnotes);
 
   for (size_t i = 0; i < n_footnotes; i++)
-    if (f[i])
-      {
-        tab_text_format (t, 0, i, TAB_LEFT, "%s.", f[i]->marker);
-        tab_text (t, 1, i, TAB_LEFT, f[i]->content);
-        if (f[i]->style)
-          {
-            tab_add_style (t, 0, i, f[i]->style);
-            tab_add_style (t, 1, i, f[i]->style);
-          }
-      }
+    {
+      tab_text_format (t, 0, i, TAB_LEFT, "%s.", f[i]->marker);
+      tab_text (t, 1, i, TAB_LEFT, f[i]->content);
+      if (f[i]->style)
+        {
+          tab_add_style (t, 0, i, f[i]->style);
+          tab_add_style (t, 1, i, f[i]->style);
+        }
+    }
   render_pager_add_table (p, &t->table, 0);
 
   free (f);