freebsd-ports/textproc/scrollkeeper/files/patch-toc_src_toc-extract.c
Joe Marcus Clarke 4feec7a386 Revert back to 0.2 to fix some conflicts with the GNOME 1.4 OMF files.
Also, fix it so scrollkeeper 0.2 will produce a correct XML
database.  Bump PORTEPOCH.

scrollkeeper 0.3.x will be looked at further to see if there is a good way
to make it work with both GNOME 1.4 and GNOME 2.0.

PR:		38581
2002-05-26 21:54:45 +00:00

22 lines
514 B
C

--- toc/src/toc-extract.c.orig Sun May 26 17:12:20 2002
+++ toc/src/toc-extract.c Sun May 26 17:12:54 2002
@@ -97,6 +97,9 @@
stack_el = find_first_element (context, element_list);
+ if (stack_el == NULL)
+ return;
+
if (!stack_el->ignore)
{
print_indent(context->depth);
@@ -189,6 +192,9 @@
element_list = list_prepend (element_list, (void *) (SECT5));
stack_el = find_first_element (context, element_list);
+
+ if (stack_el == NULL)
+ return;
if (stack_el->title_output)
{