X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable.c;h=0667c067350ac0730a97a650ffe4e0d35f1d35df;hb=f7961177633c2ae0ffcafb8f510f42599c9b0179;hp=5dc5651fd940c0b86c5d9d6d38d5e5408fb2646f;hpb=bf3af6fb69dc94a6b3010e11e5d359e9e4abd5ba;p=pspp diff --git a/src/output/table.c b/src/output/table.c index 5dc5651fd9..0667c06735 100644 --- a/src/output/table.c +++ b/src/output/table.c @@ -321,6 +321,7 @@ table_string_get_cell (const struct table *ts_, int x UNUSED, int y UNUSED, cell->inline_contents.options = ts->options; cell->inline_contents.text = ts->string; cell->inline_contents.table = NULL; + cell->inline_contents.n_footnotes = 0; cell->n_contents = 1; cell->destructor = NULL; } @@ -355,7 +356,7 @@ static const struct table_class table_nested_class; struct table * table_create_nested (struct table *inner) { - return table_create_nested_item (table_item_create (inner, NULL)); + return table_create_nested_item (table_item_create (inner, NULL, NULL)); } /* Creates and returns a table with a single cell that contains INNER. @@ -398,6 +399,7 @@ table_nested_get_cell (const struct table *tn_, int x UNUSED, int y UNUSED, cell->inline_contents.options = TAB_LEFT; cell->inline_contents.text = NULL; cell->inline_contents.table = tn->inner; + cell->inline_contents.n_footnotes = 0; cell->n_contents = 1; cell->destructor = NULL; }