2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
* ui-out.c (append_header_to_list): Possible cut and paste error.
This commit is contained in:
parent
a287cea675
commit
44db85f8e2
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
|
2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx>
|
||||||
|
|
||||||
|
* ui-out.c (append_header_to_list): Possible cut and paste error.
|
||||||
|
|
||||||
* MAINTAINERS: white space tweak.
|
* MAINTAINERS: white space tweak.
|
||||||
|
|
||||||
2007-08-17 Michael Snyder <msnyder@access-company.com>
|
2007-08-17 Michael Snyder <msnyder@access-company.com>
|
||||||
|
|
|
@ -1036,15 +1036,20 @@ append_header_to_list (struct ui_out *uiout,
|
||||||
temphdr = XMALLOC (struct ui_out_hdr);
|
temphdr = XMALLOC (struct ui_out_hdr);
|
||||||
temphdr->width = width;
|
temphdr->width = width;
|
||||||
temphdr->alignment = alignment;
|
temphdr->alignment = alignment;
|
||||||
/* we have to copy the column title as the original may be an automatic */
|
/* We have to copy the column title as the original may be an
|
||||||
|
automatic. */
|
||||||
if (colhdr != NULL)
|
if (colhdr != NULL)
|
||||||
temphdr->colhdr = xstrdup (colhdr);
|
temphdr->colhdr = xstrdup (colhdr);
|
||||||
else
|
else
|
||||||
temphdr->colhdr = NULL;
|
temphdr->colhdr = NULL;
|
||||||
|
|
||||||
if (col_name != NULL)
|
if (col_name != NULL)
|
||||||
|
temphdr->col_name = xstrdup (col_name);
|
||||||
|
else if (colhdr != NULL)
|
||||||
temphdr->col_name = xstrdup (colhdr);
|
temphdr->col_name = xstrdup (colhdr);
|
||||||
else
|
else
|
||||||
temphdr->col_name = xstrdup (colhdr);
|
temphdr->col_name = NULL;
|
||||||
|
|
||||||
temphdr->next = NULL;
|
temphdr->next = NULL;
|
||||||
if (uiout->table.header_first == NULL)
|
if (uiout->table.header_first == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue