diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 2 | ||||
-rw-r--r-- | src/serdi.c | 5 |
2 files changed, 1 insertions, 6 deletions
@@ -102,7 +102,7 @@ serd_node_new_uri_from_string(const uint8_t* str, const SerdURI* base, SerdURI* out) { - if (str[0] == '\0') { + if (!str || str[0] == '\0') { return serd_node_new_uri(base, NULL, out); // Empty URI => Base URI } else { SerdURI uri; diff --git a/src/serdi.c b/src/serdi.c index 7a3ef301..3fbc9165 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -168,11 +168,6 @@ main(int argc, char** argv) SerdNode base_uri_node = serd_node_new_uri_from_string( base_uri_str, &base_uri, &base_uri); - if (!base_uri_node.buf) { - fprintf(stderr, "Invalid base URI <%s>\n", base_uri_str); - return 1; - } - FILE* out_fd = stdout; SerdEnv* env = serd_env_new(&base_uri_node); |