diff options
author | rh <rh> | 2002-10-11 09:25:55 +0000 |
---|---|---|
committer | rh <rh> | 2002-10-11 09:25:55 +0000 |
commit | 35302af5a981878b2206ab14868c20f30434ace2 (patch) | |
tree | 9e7af47682e931ee517c06c3eeae71feda7c75b8 /textproc | |
parent | 089e8575493ac2ce979c67bf583fbdf2b4485a7e (diff) | |
download | pkgsrc-35302af5a981878b2206ab14868c20f30434ace2.tar.gz |
Add a return value check for find_first_element() in toc-extract.c, to
avoid yet another coredump.
Bump PKGREVISION.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/scrollkeeper/Makefile | 4 | ||||
-rw-r--r-- | textproc/scrollkeeper/distinfo | 3 | ||||
-rw-r--r-- | textproc/scrollkeeper/patches/patch-aa | 22 |
3 files changed, 26 insertions, 3 deletions
diff --git a/textproc/scrollkeeper/Makefile b/textproc/scrollkeeper/Makefile index de109842dfb..6ae2c3ba530 100644 --- a/textproc/scrollkeeper/Makefile +++ b/textproc/scrollkeeper/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.6 2002/08/28 16:37:05 jlam Exp $ +# $NetBSD: Makefile,v 1.7 2002/10/11 09:25:55 rh Exp $ # DISTNAME= scrollkeeper-0.2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scrollkeeper/} \ ${MASTER_SITE_GNOME:=stable/sources/scrollkeeper/} diff --git a/textproc/scrollkeeper/distinfo b/textproc/scrollkeeper/distinfo index 6e8bb63d4a0..2713a50d2ab 100644 --- a/textproc/scrollkeeper/distinfo +++ b/textproc/scrollkeeper/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.6 2002/08/28 16:37:05 jlam Exp $ +$NetBSD: distinfo,v 1.7 2002/10/11 09:25:55 rh Exp $ SHA1 (scrollkeeper-0.2.tar.gz) = 2f1f7ce884d64d3f7e6222a373372635cdf8508e Size (scrollkeeper-0.2.tar.gz) = 308061 bytes +SHA1 (patch-aa) = 0588a4ebcc4cbf1249afe7b153c22ece7605fea7 SHA1 (patch-ab) = 5e293438129fb2573a36cd74731f1cc262f50dd3 SHA1 (patch-ac) = 32bbe5475c706212990930c0388afedb9827a845 SHA1 (patch-ad) = 388af631a3e3111ec38736320e688c842da7773f diff --git a/textproc/scrollkeeper/patches/patch-aa b/textproc/scrollkeeper/patches/patch-aa new file mode 100644 index 00000000000..6e04a98edc9 --- /dev/null +++ b/textproc/scrollkeeper/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.4 2002/10/11 09:25:55 rh Exp $ + +--- toc/src/toc-extract.c.orig Fri Oct 13 00:53:39 2000 ++++ toc/src/toc-extract.c +@@ -97,7 +97,7 @@ + + stack_el = find_first_element (context, element_list); + +- if (!stack_el->ignore) ++ if (stack_el != NULL && !stack_el->ignore) + { + print_indent(context->depth); + printf("</tocsect%d>\n", context->depth-1); +@@ -190,7 +190,7 @@ + + stack_el = find_first_element (context, element_list); + +- if (stack_el->title_output) ++ if (stack_el == NULL || stack_el->title_output) + { + list_free (element_list); + return; |