[redland-dev] Patch: librdf_node_get_li_ordinal() always returns -1
René Puls
rpuls at kcore.de
Wed Jun 23 15:29:58 BST 2004
[Please CC responses to me - I am not subscribed to the list]
Hello,
there is a tiny little bug in the librdf_node_get_li_ordinal() function
that causes it to return -1 all the time. I have attached a patch
(against 0.9.16) that corrects this problem (it removes an extra ";").
Kind regards,
René Puls
-------------- next part --------------
--- redland-0.9.16/librdf/rdf_node.c.orig Wed Jun 23 02:07:48 2004
+++ redland-0.9.16/librdf/rdf_node.c Wed Jun 23 02:08:02 2004
@@ -882,7 +882,7 @@
LIBRDF_ASSERT_RETURN((node->type != LIBRDF_NODE_TYPE_RESOURCE),
"node is not type resource", 0);
- if(node->type != LIBRDF_NODE_TYPE_RESOURCE);
+ if(node->type != LIBRDF_NODE_TYPE_RESOURCE)
return -1;
uri_string=librdf_uri_as_string(node->value.resource.uri);
More information about the redland-dev
mailing list