[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: makeinfo --xml segfaults with empty @top
From: |
Karl Berry |
Subject: |
Re: makeinfo --xml segfaults with empty @top |
Date: |
Fri, 12 Mar 2004 13:22:20 -0500 |
makeinfo --xml segfaults with this simple program
@node Top
@top
Thanks, I checked in a trivial fix. I'm not sure if we should make this
a warning.
*** sectioning.c 20 Feb 2004 02:42:19 -0000 1.11
--- sectioning.c 12 Mar 2004 18:21:06 -0000 1.12
***************
*** 352,358 ****
get_rest_of_line (0, &temp);
/* Use @settitle value if @top parameter is empty. */
if (STREQ (command, "top") && strlen(temp) == 0)
! temp = xstrdup (title);
/* Docbook does not support @unnumbered at all. So we provide
numbers
that other formats use. @appendix seems to be fine though, so
we let
--- 352,358 ----
get_rest_of_line (0, &temp);
/* Use @settitle value if @top parameter is empty. */
if (STREQ (command, "top") && strlen(temp) == 0)
! temp = xstrdup (title ? title : "");
/* Docbook does not support @unnumbered at all. So we provide
numbers
that other formats use. @appendix seems to be fine though, so
we let