aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-30 17:41:11 +0000
committerDavid Robillard <d@drobilla.net>2011-04-30 17:41:11 +0000
commit3ef3583423f162dc1860523deed95fa215ff5c10 (patch)
tree7a0e1703a023a47a2f740c67da4b12066cc23c7e /src/node.c
parent6dba0dd5cf94285437d2a0808ee2dec971302058 (diff)
downloadserd-3ef3583423f162dc1860523deed95fa215ff5c10.tar.gz
serd-3ef3583423f162dc1860523deed95fa215ff5c10.tar.bz2
serd-3ef3583423f162dc1860523deed95fa215ff5c10.zip
Use descriptive return codes instead of bool
git-svn-id: http://svn.drobilla.net/serd/trunk@154 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node.c b/src/node.c
index 7a7a7642..b262ad3a 100644
--- a/src/node.c
+++ b/src/node.c
@@ -100,7 +100,7 @@ serd_node_new_uri_from_string(const uint8_t* str,
return serd_node_new_uri(base, NULL, out); // Empty URI => Base URI
} else {
SerdURI uri;
- if (serd_uri_parse(str, &uri)) {
+ if (!serd_uri_parse(str, &uri)) {
return serd_node_new_uri(&uri, base, out); // Resolve/Serialise
}
}
@@ -129,7 +129,7 @@ serd_node_new_uri(const SerdURI* uri, const SerdURI* base, SerdURI* out)
node.n_chars = actual_len;
// FIXME: double parse
- if (!serd_uri_parse(buf, out)) {
+ if (serd_uri_parse(buf, out)) {
fprintf(stderr, "Failed to parse URI <%s>\n", buf);
return SERD_NODE_NULL;
}