aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
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;
}