forked from Lainports/freebsd-ports
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
22 lines
514 B
C
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)
|
|
{
|