openbsd-ports/textproc/scrollkeeper/patches/patch-libs_install_c

18 lines
595 B
Plaintext

$OpenBSD: patch-libs_install_c,v 1.2 2004/02/21 22:25:34 marcm Exp $
--- libs/install.c.orig 2004-02-08 08:27:52.000000000 -0800
+++ libs/install.c 2004-02-08 08:27:56.000000000 -0800
@@ -517,11 +517,11 @@ static void add_doc_to_content_list(xmlN
/* these should all be <sect> nodes */
for(node = sect_node; node != NULL; node = node->next)
{
+ xmlChar *categorycode;
+
if (xmlStrcmp(node->name, (xmlChar *)"sect"))
continue;
- xmlChar *categorycode;
-
categorycode = xmlGetProp(node, (xmlChar *)"categorycode");
if (categorycode == NULL)
continue;