diff options
Diffstat (limited to 'tools/serd-pipe.c')
-rw-r--r-- | tools/serd-pipe.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/serd-pipe.c b/tools/serd-pipe.c index 9be11d66..3f1c3f53 100644 --- a/tools/serd-pipe.c +++ b/tools/serd-pipe.c @@ -163,7 +163,7 @@ main(int argc, char** argv) return missing_arg(prog, 'B'); } - base = serd_new_uri(NULL, serd_string(argv[a])); + base = serd_node_new(NULL, serd_a_uri_string(argv[a])); break; } else if (opt == 'b') { if (argv[a][o + 1] || ++a == argc) { @@ -281,8 +281,9 @@ main(int argc, char** argv) // Choose base URI from the single input path char* const input_path = zix_canonical_path(NULL, inputs[0]); if (!input_path || - !(base = serd_new_file_uri( - NULL, serd_string(input_path), serd_empty_string()))) { + !(base = serd_node_new( + NULL, + serd_a_file_uri(serd_string(input_path), serd_empty_string())))) { SERDI_ERRORF("unable to determine base URI from path %s\n", inputs[0]); } zix_free(NULL, input_path); |