aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 3d3b414c..b391f549 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -286,7 +286,7 @@ main(int argc, char** argv)
in_name = in_name ? in_name : input;
if (!in_fd) {
if (!strncmp(input, "file:", 5)) {
- input_path = serd_file_uri_parse(input, NULL);
+ input_path = serd_parse_file_uri(input, NULL);
input = input_path;
}
if (!input || !(in_fd = serd_fopen(input, "rb"))) {
@@ -312,7 +312,8 @@ main(int argc, char** argv)
SerdURIView base_uri = SERD_URI_NULL;
SerdNode* base = NULL;
if (a < argc) { // Base URI given on command line
- base = serd_new_uri_from_string((const char*)argv[a], NULL, &base_uri);
+ base_uri = serd_parse_uri(argv[a]);
+ base = serd_new_parsed_uri(base_uri);
} else if (from_file && in_fd != stdin) { // Use input file URI
base = serd_new_file_uri(input, NULL, &base_uri);
}