Fix build on -STABLE.

This commit is contained in:
Alexander Nedotsukov 2003-11-04 13:23:08 +00:00
parent 1150c6620e
commit 92bdbda425
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93062
2 changed files with 5 additions and 5 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= scrollkeeper
PORTVERSION= 0.3.12
PORTREVISION= 3
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= textproc gnome
MASTER_SITES= ${MASTER_SITE_GNOME}

View file

@ -1,5 +1,5 @@
--- libs/install.c.orig Tue Nov 4 02:42:22 2003
+++ libs/install.c Tue Nov 4 02:42:26 2003
--- libs/install.c.orig Thu Jan 23 01:10:57 2003
+++ libs/install.c Tue Nov 4 07:46:26 2003
@@ -41,7 +41,7 @@
static int get_unique_doc_id(char *);
static void add_doc_to_scrollkeeper_docs(char *, char *, char *, int, char *);
@ -138,6 +138,8 @@
/* these should all be <sect> nodes */
for(node = sect_node; node != NULL; node = node->next)
{
+ xmlChar *categorycode;
+
if (xmlStrcmp(node->name, (xmlChar *)"sect"))
continue;
-
@ -149,8 +151,6 @@
- break;
- }
+
+ xmlChar *categorycode;
+
+ categorycode = xmlGetProp(node, (xmlChar *)"categorycode");
+ if (categorycode == NULL)
+ continue;