If the footer line is not allocated, programs segfault at runtime.
The printFooter functions should check if the footer
is allocated before printing them.
Change-Id: Ib4066a67ee104be918811e178c0b7d7d33d790b8
Reviewed-on: http://gerrit.openafs.org/11753
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
}
int util_setTableFooter(struct util_Table * Table, char ** Contents) {
+ if (Table->Footer != NULL)
+ Table->Footer = newTableRow(Table);
return do_setTableRow(Table,Table->Footer,Contents);
}